[datatable-help] fread will not respect stringsAsFactors

Frank Harrell f.harrell at vanderbilt.edu
Wed Apr 30 14:28:27 CEST 2014


In R 3.1.0 and data.table 1.9.2, I can't get stringsAsFactors to work:

require(data.table)
s=fread('http://biostat.mc.vanderbilt.edu/tmp/support2.csv', 
stringsAsFactors=TRUE)
attributes(s$sex)   # NULL; is character

Frank



More information about the datatable-help mailing list