root: nth Root Transformation

Description Usage Arguments Examples

View source: R/05-root-power.R

Description

Stable lifecycle

Usage

1
2
3
4
5
root(x, root = NULL, modulus = FALSE)

root_sq(x, ...)

root_cubic(x, ...)

Arguments

x

[univariate vector]

Univariate vector, numeric or ts object with only one dimension.

root

[numeric(1): NA]

The nth root.

modulus

[logical(1): FALSE]

Transformation will work for data with both positive and negative root.

...

Further arguments passed to root.

Examples

1
2
3
4
root(4, 2)
root(-4, 2)

root(-4, 2, TRUE)

kvasilopoulos/transx documentation built on Jan. 26, 2021, 6:14 p.m.