Re: [R] Problem loading a txt file as a data.frame

2007-10-05 Thread Prof Brian Ripley
The first-round answer to such questions is to try read.delim(). Why? Because the issues are often comment characters (#) or quotes('). It is also possible that you have unmatched ", but that usually indicates something more serious. On Fri, 5 Oct 2007, Ettinger, Nicholas wrote: > Hello all, >

Re: [R] Problem loading a txt file as a data.frame

2007-10-05 Thread Richard Gott
Not sure if same problem, but I had a very simple file which wouldn;t load. I had created it, in a roundabout way, via Gnumeric. After some fiddlign around I decided that there was a non-printing character or rogue \n or \r character somewhere in the file but I couldn;t find it. loading bits fo t

[R] Problem loading a txt file as a data.frame

2007-10-05 Thread Ettinger, Nicholas
Hello all, I know that this is a terribly banal question but I cannot seem to solve it. I am trying to load in data from a tab-delimited text file. Some columns are mixed text-numbers and other columns are strictly numbers. Some cells are blank. My command is: >MDMT_RPup <- read.table

Re: [R] Problem loading a txt file as a data.frame

2007-10-02 Thread Charles C. Berry
On Tue, 2 Oct 2007, Ettinger, Nicholas wrote: > Hello all, > > I know that this is a terribly banal question but I cannot seem to solve > it. > > I am trying to load in data from a tab-delimited text file. Some > columns are mixed text-numbers and other columns are strictly numbers. > Some cells

[R] Problem loading a txt file as a data.frame

2007-10-02 Thread Ettinger, Nicholas
Hello all, I know that this is a terribly banal question but I cannot seem to solve it. I am trying to load in data from a tab-delimited text file. Some columns are mixed text-numbers and other columns are strictly numbers. Some cells are blank. My command is: >MDMT_RPup <- read.table