Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reading apostrophs #2

Open
fraenzi opened this issue Aug 3, 2018 · 0 comments
Open

reading apostrophs #2

fraenzi opened this issue Aug 3, 2018 · 0 comments

Comments

@fraenzi
Copy link
Owner

fraenzi commented Aug 3, 2018

Apostrophes produce errors while reading in data.
Rob found a solution, that needs to be implemented.

mail of Rob 26. January 2018
The answer is here:
https://stackoverflow.com/questions/9620155/how-to-read-a-csv-file-containing-apostrophes-into-r

Apparently read.table (and others) have a quote argument which defaults to
quote = " " ' " # I have added spaces for clarity

There are two solutions:
quote = """
or
quote = "" # or quote = NULL
The first accepts just the double-quote (") as the start of a string, the second accepts no quoted strings, which might be safer?

Also it has the argument
comment.char="#"
which indicates a comment. I am not sure anyone is likely to use this symbol, but maybe adding
comment.char = ""
to the read.table command would also be safe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant