Open xiaodaigh opened 5 years ago
This is as documented (emphasis mine):
colClasses
| As inread.csv
; i.e., an unnamed vector of types corresponding to the columns in the file
col.names
| A vector of optional names for the variables (columns)... This is applied aftercheck.names
and beforekey
andindex
.
I'm not sure it's possible to do otherwise? colClasses
is passed to the file parser, and col.names
is applied to the result of the file parser.
Also please let us know if you think the documentation can be improved 😄
I can't seem to use
col.names
andcolClasses
together indata.table::fread
. See MWEwhich produces the error