io_csv.character: Import Documented Table as CSV

View source: R/io_csv.R

io_csv.characterR Documentation

Import Documented Table as CSV

Description

Imports a documented table as comma-separated variable. A wrapper for as.csv.character that also reads associated yamlet metadata, if present, and applies it as attributes.

Usage

## S3 method for class 'character'
io_csv(
  x,
  ext = getOption("yamlet_extension", ".yaml"),
  meta = NULL,
  gz = NULL,
  ...
)

Arguments

x

character file path; passed to as.csv.character (by method dispatch)

ext

extension for metadata equivalent of x

meta

explicit file path for metadata; if null, ext is appended to x after removing (final) extension, if any

gz

logical; guessed by default from x; if TRUE, '.gz' extension enforced present for x and absent for default meta

...

passed to as.csv.character and to decorate

Value

data.frame

See Also

Other io: io_csv.data.frame(), io_csv(), io_res.character(), io_res.decorated(), io_res(), io_table.character(), io_table.data.frame(), io_table(), io_yamlet.character(), io_yamlet.data.frame(), io_yamlet.yamlet(), io_yamlet()

Other interface: canonical.decorated(), classified.data.frame(), decorate.character(), decorate.data.frame(), desolve.decorated(), ggplot.decorated(), io_csv.data.frame(), io_res.character(), io_res.decorated(), io_table.character(), io_table.data.frame(), io_yamlet.character(), io_yamlet.data.frame(), is_parseable.default(), mimic.default(), modify.default(), promote.list(), read_yamlet(), resolve.decorated(), selected.default(), write_yamlet()

Examples

example(io_csv)

yamlet documentation built on Oct. 6, 2023, 9:07 a.m.