as.csv.character: Treat Character as CSV filename.

Description Usage Arguments Details Value See Also

View source: R/csv.R

Description

Treat a character string as a CSV filename.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'character'
as.csv(
  x,
  as.is = TRUE,
  na.strings = c("", "\\s", ".", "NA"),
  strip.white = TRUE,
  check.names = FALSE,
  source = getOption("csv_source", TRUE),
  ...
)

Arguments

x

character file path

as.is

passed to read.csv

na.strings

passed to read.csv

strip.white

passed to read.csv

check.names

passed to read.csv

source

whether to assign x as the source attribute of the return value

...

passed to read.csv if accepted by read.table

Details

If x is character, is length one, and is a path to a file, an attempt is made to read the file.

Value

data.frame, with attribute 'source' set to x

See Also

Other as.csv: as.csv.data.frame(), as.csv()


csv documentation built on July 1, 2020, 10:27 p.m.

Related to as.csv.character in csv...