[R] Data type in a data frame
asafw at wharton.upenn.edu
Tue Oct 23 16:43:43 CEST 2012
How does R know to regard a variable as a factor and not a character?
For example, consider the following table:
Observation Gender Dosage
1 m a
2 m a
3 m a
4 m a
5 m b
6 m b
When read into a dataframe, will "m", "a", "b" be regarded as a factor or as
a character? How does R decide?
Thanks a lot in advance,
View this message in context: http://r.789695.n4.nabble.com/Data-type-in-a-data-frame-tp4647161.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help