power_trans: Power transformation

View source: R/scale_trans.R

power_transR Documentation

Power transformation

Description

Applies an exponential transform of the input: y = abs(x)^k, where:

  • x is the input vector

  • k is the exponent

Usage

power_trans(exponent = 0.5)

Arguments

exponent

<number> The power exponent

Details

If x is negative, the result is multiplied by -1.

See Also

Other transform: log_trans(), symlog_trans()


anthonynorth/rdeck documentation built on Aug. 11, 2024, 1:40 p.m.