Import CSVY data

Share:

Description

Import CSVY data as a data.frame

Usage

1
2
read_csvy(file, sep = ",", dec = ".", header = "auto",
  stringsAsFactors = FALSE, method = c("utils", "data.table", "readr"), ...)

Arguments

file

A character string or R connection specifying a file.

sep

A character string specifying a between-field separator. Passed to read.csv or fread depending on the value of method. Ignored for method = 'readr'.

dec

A character string specifying a within-field separator. Passed to read.csv or fread depending on the value of method. Ignored for method = 'readr'.

header

A character string or logical specifying whether the file contains a header row of column names (below the YAML frontmatter). Passed to read.csv, fread, or read_csv depending on the value of method.

stringsAsFactors

A logical specifying whether to treat character columns as factors. Passed to read.csv or fread depending on the value of method. Ignored for method = 'readr' which never returns factors.

method

A character string specifying which package to use to read in the CSV data. Must be on of “utils” (for read.csv), “data.table” (for fread), or “readr” (for read_csv).

...

Additional arguments passed to read.csv, fread, or read_csv depending on the value of method.

See Also

write_csvy

Examples

1
read_csvy(system.file("examples", "example3.csvy", package = "csvy"))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.