Learn R Programming

transx (version 0.0.1)

pow: nth Power Transformation

Description

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

Run this code
# NOT RUN {
pow(2, 2)
pow(-2, 2)
pow(-2,2, TRUE)
# }

Run the code above in your browser using DataLab