read_csvy: Read a CSVY file

Description Usage Arguments Details

Description

Read a CSVY file

Usage

1
2
read_csvy(file, metadata = NULL, verbose = TRUE, tbl = TRUE,
  data.table = FALSE, ...)

Arguments

file

Name of file to read.

metadata

Path to additional metadata. If NULL (default), assume metadata is in file.

verbose

Logical. If TRUE, print warning if no header found.

tbl

Logical. If TRUE (default), return a tbl. If data.table is TRUE, this is automatically set to FALSE.

data.table

Logical. If TRUE, return a data.table. Default is FALSE.

...

Additional arguments to data.table::fread

Details

A CSVY (CSV + YAML) file is just a CSV file prepended with a YAML header containing relevant metadata. The metadata can be any list or list-like object, and any fields not specially recognized will be parsed by yaml::read_yaml and stored as named attributes. The following metadata fields are parsed specially:


ashiklom/metar documentation built on May 25, 2019, 2:26 p.m.