Skip to content
Prev 221801 / 398500 Next

importing columns as factors

Caitlin Sadowski wrote:
It's in the help file for ?read.csv, the colClasses argument:

colClasses: character.  A vector of classes to be assumed for the
           columns.  Recycled as necessary, or if the character vector
           is named, unspecified values are taken to be ?NA?.