io_res.character: Import Documented Table as Resolved

View source: R/io_res.R

io_res.characterR Documentation

Import Documented Table as Resolved

Description

Imports a documented table and resolves ambiguous guide elements. A wrapper for io_csv.character that also reads associated yamlet metadata, if present, and applies it as attributes. Invokes resolve to resolve ambiguity of 'guide' attribute, if possible. A short-cut for resolve(io_csv(x)).

Usage

## S3 method for class 'character'
io_res(x, ext = getOption("yamlet_extension", ".yaml"), ...)

Arguments

x

character file path; passed to io_csv.character

ext

extension for metadata equivalent of x

...

passed to io_csv.character

Value

decorated

See Also

Other io: io_csv.character(), io_csv.data.frame(), io_csv(), 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.character(), io_csv.data.frame(), 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

library(magrittr)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- io_csv(file) %>% resolve
y <- io_res(file)
identical(x, y)

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