standardize_at: Modify dataframe-columns to standardize them by a constant...

Description Usage Arguments Value See Also Examples

Description

Modify dataframe-columns to standardize them by a constant denominator.

Usage

1
standardize_at(x, .at, denominator)

Arguments

x

Dataframe.

.at

A character vector of names, positive numeric vector of positions to include, or a negative numeric vector of positions to exlude. Only those elements corresponding to .at will be modified. If the tidyselect package is installed, you can use vars() and the tidyselect helpers to select elements.

denominator

A numeric vector of length 1.

Value

A data.frame.

See Also

Other general functions to perform common transforms: convert_unit

Examples

1
2
3
dfm <- data.frame(a = 1:3, b = 11:13)
standardize_at(dfm, "a", denominator = 100)
standardize_at(dfm, names(dfm), denominator = 100)

forestgeo/fgeo.misc documentation built on June 23, 2019, 6:26 p.m.