alias.data.frame: Alias a Data Frame

View source: R/alias.R

alias.data.frameR Documentation

Alias a Data Frame

Description

Aliases a data.frame. Replaces column names with labels, where present. Stores column name as 'alias' attribute.

Usage

## S3 method for class 'data.frame'
alias(object, ...)

Arguments

object

data.frame

...

optional unquoted names of target columns

Value

aliased data.frame

See Also

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()

Examples

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)

bergsmat/yamlet documentation built on Feb. 18, 2024, 5:50 a.m.