Re: [R] suggestions regarding reading in a messy file

2011-07-13 Thread Juliet Hannah
Thanks David. count.fields revealed the problem, and pointed me in a direction to understand some basics that I had missed. Writing the original file with quote=TRUE solved the problem or reading it in with quote="" also fixed the problem. On Tue, Jul 12, 2011 at 4:48 PM, David Winsemius wrote:

Re: [R] suggestions regarding reading in a messy file

2011-07-12 Thread David Winsemius
On Jul 12, 2011, at 4:37 PM, Juliet Hannah wrote: I have a file in stata format, which I have read in, and I am trying to create a text file. I have exported the data using various delimiters, but I'm unable to read it back in. I originally read in the file with: library(foreign) myData <- rea

[R] suggestions regarding reading in a messy file

2011-07-12 Thread Juliet Hannah
I have a file in stata format, which I have read in, and I am trying to create a text file. I have exported the data using various delimiters, but I'm unable to read it back in. I originally read in the file with: library(foreign) myData <- read.dta("mydata.dta") I then exported it with write.tab