You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is unambiguously a column of empty strings, yet data.table::fread("test.tsv") parses this as a logical class vector with NA values (and, maybe not unexpectedly, no setting of na.strings changes this since the column isn't getting parsed as strings in the first place). As long as one non-empty string is added into the column, e.g.
col
hotdog
""
""
""
then data.table::fread("test.tsv") correctly identifies this as a string column and parses it into a character vector with one non-empty, 3 empty, and 0 NA values.
Package data.table version 1.14.2, running on RedHat linux, with R version 3.6.0.
The text was updated successfully, but these errors were encountered:
Let
test.csv
be the file with contentsThis is unambiguously a column of empty strings, yet
data.table::fread("test.tsv")
parses this as a logical class vector with NA values (and, maybe not unexpectedly, no setting of na.strings changes this since the column isn't getting parsed as strings in the first place). As long as one non-empty string is added into the column, e.g.then
data.table::fread("test.tsv")
correctly identifies this as a string column and parses it into a character vector with one non-empty, 3 empty, and 0 NA values.Package data.table version 1.14.2, running on RedHat linux, with R version 3.6.0.
The text was updated successfully, but these errors were encountered: