问题
fread
: Specifying colClasses of file with 2 columns with same name, using col and col.1 does not work
fread(file, colClasses(col = "character", col.1 = "character"), check.names = TRUE)
It seems the check.names = TRUE
is performed later, after the file is read. Is there any workaround to help do it. I need to preserve the precision of the columns col...
来源:https://stackoverflow.com/questions/58178779/fread-specifying-colclasses-of-file-with-2-columns-with-same-name-using-col-a