pow {transx}R Documentation

nth Power Transformation

Description

Stable lifecycle

Usage

pow(x, pow = NULL, modulus = FALSE)

Arguments

x

⁠[univariate vector]⁠

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

pow

⁠[numeric(1): NA]⁠

The nth power.

modulus

positive

Value

Returns a vector with the same class and attributes as the input vector.

Examples

pow(2, 2)
pow(-2, 2)
pow(-2,2, TRUE)

[Package transx version 0.0.1 Index]