[R] importing columns as factors

Caitlin Sadowski supertri at soe.ucsc.edu
Sun May 23 09:04:55 CEST 2010


I have a large csv table I am trying to read into R. I would like each
column to be of type factor. However, most columns have only numeral
entries (e.g. likert scales), so are automatically imported as type
numeric. Is there a way to convert ALL columns to be of type factor,
without having to convert each column manually?

Cheers,

Caitlin



More information about the R-help mailing list