[R] read.table question

Rolf Turner r.turner at auckland.ac.nz
Mon Jul 28 05:32:39 CEST 2008


On 28/07/2008, at 3:26 PM, Edna Bell wrote:

> Dear R list:
>
> I have a data set that I would like to bring it.  The fourth column
> shows as numeric, but I want it to be a factor.  Is there a way to do
> this from the read.table statement, or should I just wait and use the
> factor function please?

Look at the colClasses argument to read.table().

	cheers,

		Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}



More information about the R-help mailing list