fread_zip 7
skip="string" searches for "string" in the file (e.g. a substring of the column
names row) and starts on that line (inspired by read.xls in package gdata).
drop Vector of column names or numbers to drop, keep the rest.
colClasses A character vector of classes (named or unnamed), as read.csv. Or a named list
of vectors of column names or numbers, see examples. colClasses in fread is
intended for rare overrides, not for routine use. fread will only promote a column
to a higher type if colClasses requests it. It won’t downgrade a column to a
lower type since NAs would result. You have to coerce such columns afterwards
yourself, if you really require data loss.
integer64 "integer64" (default) reads columns detected as containing integers larger than
2^31 as type bit64::integer64. Alternatively, "double"|"numeric" reads as base::read.csv
does; i.e., possibly with loss of precision and if so silently. Or, "character".
dec The decimal separator as in base::read.csv. If not "." (default) then usually ",".
See details.
check.names default is FALSE. If TRUE then the names of the variables in the data.table are
checked to ensure that they are syntactically valid variable names. If necessary
they are adjusted (by make.names) so that they are, and also to ensure that there
are no duplicates.
encoding default is "unknown". Other possible options are "UTF-8" and "Latin-1". Note:
it is not used to re-encode the input, rather enables handling of encoded strings
in their native encoding.
quote By default ("\""), if a field starts with a doublequote, fread handles embedded
quotes robustly as explained under Details. If it fails, then another attempt is
made to read the field as is, i.e., as if quotes are disabled. By setting quote="",
the field is always read as if quotes are disabled.
strip.white default is TRUE. Strips leading and trailing whitespaces of unquoted fields. If
FALSE, only header trailing spaces are removed.
fill logical (default is FALSE). If TRUE then in case the rows have unequal length,
blank fields are implicitly filled.
blank.lines.skip
logical, default is FALSE. If TRUE blank lines in the input are ignored.
key Character vector of one or more column names which is passed to setkey. It
may be a single comma separated string such as key="x,y,z", or a vector of
names such as key=c("x","y","z"). Only valid when argument data.table=TRUE
Names A character vector of names for the tables to be read, note that the table will be
read and listed by an alphabetical order, use with caution.
prefix A character string to be prefixed to each table name.
showProgress TRUE displays progress on the console using \r. It is produced in fread’s C
code where the very nice (but R level) txtProgressBar and tkProgressBar are not
easily available.
data.table logical. TRUE returns a data.table. FALSE returns a data.frame.
Details
Similar to loadcsv_multi can read multiple tables from either ’.txt’ or ’.csv’ files, uses fread for
additional speed. Takes arguments that respond to fread’s arguments.