[R] colClasses

Witold Eryk Wolski wolski at molgen.mpg.de
Mon Oct 11 22:33:20 CEST 2004

I would try.


Kalaylioglu, Zeynep (IMS) wrote:

>I am trying to read a data frame from a text editor in to R. I want some
>of the columns to be read in as "character" not numeric.
>I figured that I can do that by using "colClasses" in  "read.table"
>command. However, I couldn't find out how to use 
>"colClasses". e.g. say I have 5 column in the data file. I want 1st and
>3rd column to be read in as character. How can I define
>this using colClasses?  (or is there a better way to do what I want?)
>	[[alternative HTML version deleted]]
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Dipl. bio-chem. Witold Eryk Wolski         
MPI-Moleculare Genetic
Ihnestrasse 63-73 14195 Berlin                 _
tel: 0049-30-83875219                 __("<   'v'
http://www.molgen.mpg.de/~wolski      \__/   /   \
mail: witek96 at users.sourceforge.net    ^^     w w
      wolski at molgen.mpg.de

More information about the R-help mailing list