[R] read.table

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Apr 2 08:48:01 CEST 2003


Oldradio69 at aol.com wrote:
> Group members,
> 
> I am using read.table() to read in ASCII data into a data
> frame.  The file has multiple columns that are not the
> same length.  The function gives me errors, or I get 'NA'
> characters in the blank fields.  I want to read these values
> in to, e.g., perform a two-sample t-test.

So a data.frame isn't the appropiate structure for your data.
You might want to convert it to another structure and remove the 
appended NAs, or consider to read the data in using scan() and friends. 
See the R Data Import/Export Manual for details.

Uwe Ligges



More information about the R-help mailing list