<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi Frank,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">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.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <div id="bloop_sign_1398863011669591808" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">Arun</div></div> <div style="color:black"><br>From: <span style="color:black">Frank Harrell</span> <a href="mailto:f.harrell@vanderbilt.edu">f.harrell@vanderbilt.edu</a><br>Reply: <span style="color:black">Frank Harrell</span> <a href="mailto:f.harrell@vanderbilt.edu">f.harrell@vanderbilt.edu</a><br>Date: <span style="color:black">April 30, 2014 at 2:28:46 PM</span><br>To: <span style="color:black">datatable-help@lists.r-forge.r-project.org</span> <a href="mailto:datatable-help@lists.r-forge.r-project.org">datatable-help@lists.r-forge.r-project.org</a><br>Subject: <span style="color:black"> [datatable-help] fread will not respect stringsAsFactors <br></span></div><br> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>In R 3.1.0 and data.table 1.9.2, I can't get stringsAsFactors to work:
<br>
<br>require(data.table)
<br>s=fread('http://biostat.mc.vanderbilt.edu/tmp/support2.csv',
<br>stringsAsFactors=TRUE)
<br>attributes(s$sex) # NULL; is character
<br>
<br>Frank
<br>
<br>_______________________________________________
<br>datatable-help mailing list
<br>datatable-help@lists.r-forge.r-project.org
<br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
<br></div></div></span></blockquote></body></html>