Treat a character string as a CSV filename.
# S3 method for character
as.csv(
x,
as.is = TRUE,
na.strings = c("", "\\s", ".", "NA"),
strip.white = TRUE,
check.names = FALSE,
source = getOption("csv_source", TRUE),
...
)
character file path
passed to read.csv
passed to read.csv
passed to read.csv
passed to read.csv
whether to assign x as the source attribute of the return value
passed to read.csv
if accepted by read.table
data.frame, with attribute 'source' set to x
If x is character, is length one, and is a path to a file, an attempt is made to read the file.
Other as.csv:
as.csv.data.frame()
,
as.csv()