Learn R Programming

yamlet (version 0.6.5)

append_units.data.frame: Append Units for Data Frame

Description

Appends units for data.frame. For finer control, consider applying append_units.default to individual columns.

Usage

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

Arguments

x

data.frame

...

named arguments passed to default method, un-named are columns to alter scope

Value

data.frame

See Also

Other labels: alias.data.frame(), append_units.default(), append_units(), sub_units()

Examples

Run this code
# NOT RUN {
library(magrittr)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
file %>% decorate %>% explicit_guide %>% append_units %>% decorations(Age, glyco)
file %>% decorate %>% explicit_guide %>% append_units(glyco) %>% decorations(Age, glyco)
# }

Run the code above in your browser using DataLab