[R] Reg. strings and numeric data in matrix.

Ben Bolker bolker at zoo.ufl.edu
Fri Mar 9 21:10:33 CET 2007


Mallika Veeramalai <mallikav <at> burnham.org> writes:

I would like to know,
> is it possible to consider a matrix with some columns having numeric data
> and some other's with characters (strings) data?  How do I get this type of
> data from a flat file.

  It's called a "data frame".  See the Introduction to R,
and help for read.table and read.csv.  (The character data
will get made into factors unless you use as.is=TRUE
or specify colClasses.)



More information about the R-help mailing list