Learn R Programming

yamlet (version 1.2.1)

io_res.character: 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 character
io_res(x, ext = getOption("yamlet_extension", ".yaml"), ...)

Value

decorated

Arguments

x

character file path; passed to io_csv.character

ext

extension for metadata equivalent of x

...

passed to io_csv.character

See Also

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

Other interface: canonical.decorated(), classified.data.frame(), decorate.character(), decorate.data.frame(), desolve.decorated(), enscript.default(), 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

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

Run the code above in your browser using DataLab