Hi Frank, IIRC it's not implemented yet (irrespective of R or data.table version). I think there's a bug/FR somewhere. Matt hasn't gotten to it yet.
Arun From: Frank Harrell [email protected] Reply: Frank Harrell [email protected] Date: April 30, 2014 at 2:28:46 PM To: [email protected] [email protected] Subject: [datatable-help] fread will not respect stringsAsFactors 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 _______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
_______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
