alias.data.frame | R Documentation |
Aliases a data.frame. Replaces column names with labels, where present. Stores column name as 'alias' attribute.
## S3 method for class 'data.frame'
alias(object, ...)
object |
data.frame |
... |
optional unquoted names of target columns |
aliased data.frame
Other labels:
append_units.data.frame()
,
append_units.default()
,
append_units()
,
drop_title.decorated()
,
drop_title.default()
,
drop_title.dvec()
,
drop_title()
,
make_title.decorated()
,
make_title.default()
,
make_title.dvec()
,
make_title()
,
sub_units()
Other deprecated:
append_units()
,
drop_title()
,
make_title()
library(magrittr)
d <- data.frame(x = 1:10, y = 1:10, z = 1:10)
d %<>% modify(x, label = 'Independent Value')
d %<>% modify(y, label = 'Dependent Value')
d
alias(d)
alias(d, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.