append_units.data.frame: Append Units for Data Frame

Description Usage Arguments Value See Also Examples

View source: R/append_units.R

Description

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

Usage

1
2
## S3 method for class '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

1
2
3
4
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)

yamlet documentation built on July 19, 2021, 1:06 a.m.