Skip to content
Prev 221798 / 398500 Next

importing columns as factors

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