Is it possible to read csv files in R and specify the factor levels?
Suppose I have the following csv:
factor1,factor2
0,1
1,0
with the following factor:
factor(c('dead', 'alive'))
colClasses
doesn't really work as it names the levels 0 and 1 instead of a custom factor.