read_csvy: Import CSVY data

Description Usage Arguments See Also Examples

View source: R/read_csvy.R

Description

Import CSVY data as a data.frame

Usage

1
2
read_csvy(file, metadata = NULL, stringsAsFactors = FALSE,
  detect_metadata = TRUE, ...)

Arguments

file

A character string or R connection specifying a file.

metadata

Optionally, a character string specifying a YAML (“.yaml”) or JSON (“.json”) file containing metadata (in lieu of including it in the header of the file).

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.

detect_metadata

A logical specifying whether to auto-detect a metadata file if none is specified (and if no header is found).

...

Additional arguments passed to fread.

See Also

write_csvy

Examples

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

csvy documentation built on May 2, 2019, 2:09 a.m.