Learn R Programming

yamlet (version 0.9.3)

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, ...)

Value

data.frame

Arguments

x

data.frame

...

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

See Also

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

Examples

Run this code
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