Learn R Programming

csvy (version 0.3.0)

read_csvy: Import CSVY data

Description

Import CSVY data as a data.frame

Usage

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

Run this code
# NOT RUN {
read_csvy(system.file("examples", "example1.csvy", package = "csvy"))

# }

Run the code above in your browser using DataLab