Learn R Programming

transx (version 0.0.1)

root: nth Root Transformation

Description

  • root: nth root

  • root_sqrt: square root

  • root_cubic: cubic root

Usage

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

Run this code
# NOT RUN {
root(4, 2)
root(-4, 2)

root(-4, 2, TRUE)
# }

Run the code above in your browser using DataLab