Re: [R] expected behavior when parsing lines with special characters

2011-02-15 Thread David Wolfskill
On Tue, Feb 15, 2011 at 12:21:18PM -0500, Robert M. Flight wrote: > Say I have a tab-delimited table I want to read into R. What should I > expect to happen if some of the entries contain the character " ' "? I > thought it would read the file fine, but that is not what happens. > Instead, all the

Re: [R] expected behavior when parsing lines with special characters

2011-02-15 Thread Peter Ehlers
On 2011-02-15 09:25, Peter Langfelder wrote: On Tue, Feb 15, 2011 at 9:21 AM, Robert M. Flight wrote: Say I have a tab-delimited table I want to read into R. What should I expect to happen if some of the entries contain the character " ' "? I thought it would read the file fine, but that is not

Re: [R] expected behavior when parsing lines with special characters

2011-02-15 Thread Peter Langfelder
On Tue, Feb 15, 2011 at 9:21 AM, Robert M. Flight wrote: > Say I have a tab-delimited table I want to read into R. What should I > expect to happen if some of the entries contain the character " ' "? I > thought it would read the file fine, but that is not what happens. > Instead, all the values i

Re: [R] expected behavior when parsing lines with special characters

2011-02-15 Thread jim holtman
Check out the arguments for read.table especially 'quote' you probably want quote='' to suppress the special meaning of quote. You might also need comment.char in the future. On Tue, Feb 15, 2011 at 12:21 PM, Robert M. Flight wrote: > Say I have a tab-delimited table I want to read into R. What

[R] expected behavior when parsing lines with special characters

2011-02-15 Thread Robert M. Flight
Say I have a tab-delimited table I want to read into R. What should I expect to happen if some of the entries contain the character " ' "? I thought it would read the file fine, but that is not what happens. Instead, all the values in between two " ' "s get read into one field, and things are just