Please add a FR to add stringsAsFactors to as.data.table.matrix method, and may as well capture feature request to port that to C, at the same time.
In meatime, given M your character matrix : as.data.table(as.data.frame(M,stringsAsFactors=FALSE)) > Hi Matthew, > > First of all thank you for the quick response. Is there a way to include > a > statement like stringsAsFactors into data.table:::as.data.table.matrix? > > My 10mil by 20 matrices are of mode character, but the columns shouldn't > be > coerced into factors as is the default behaviour.... > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Convert-large-matrix-directly-to-data-table-tp4642897p4643008.html > Sent from the datatable-help mailing list archive at Nabble.com. > _______________________________________________ > 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
