pow: nth Power Transformation

Description Usage Arguments Value Examples

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

Description

Stable lifecycle

Usage

1
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

1
2
3
pow(2, 2)
pow(-2, 2)
pow(-2,2, TRUE)

transx documentation built on Nov. 27, 2020, 5:08 p.m.