Reads an input file, given a particular encoding, and possibly additional hints
Source:R/import_functions.R
safe_read_file.Rd
Reads an input file, given a particular encoding, and possibly additional hints
Usage
safe_read_file(
file,
header = TRUE,
sep = ",",
quote = "\"",
dec = ".",
fill = TRUE,
comment.char = "",
strip.white = TRUE,
...
)
Arguments
- file
the file name
- header
logical (default
TRUE
), whether or not a header line is expected- sep
character (defailt
,
), field separator character- quote
character (default
"
), field quote character- dec
character (default
.
), decimal character- fill
logical (default
TRUE
), if rows have unequal lengtg, additional blank fields are added- comment.char
character (default is empty), if not empty, a comment character
- strip.white
local (default
TRUE
), strips leading and trailing white space from fields- ...
any additional parameters to
utils::read.table