Learn R Programming

yamlet (version 0.5.3)

as_yamlet.data.frame: Coerce Data Frame to Yamlet

Description

Coerces data.frame to yamlet. Assigns class 'yamlet' to a data.frame's decorations.

Usage

# S3 method for data.frame
as_yamlet(x, ...)

Arguments

x

data.frame

...

passed to decorations

Value

yamlet

See Also

Other as_yamlet: [.yamlet(), as.character.yamlet(), as_yamlet.list(), as_yamlet.yamlet()

Examples

Run this code
# NOT RUN {
library(csv)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(as.csv(file))
as_yamlet(x)
# }

Run the code above in your browser using DataLab