Power Function

RP(x, power = 1)

Arguments

x

Must be a numeric object.

power

A numeric object called power.

Value

Raises the values in the numeric object x to the value in power.

Examples

RP(c(1, 3, 5), 3)
#> [1] 1 27 125
RP(x = c(1, 3, 5), power = 3)
#> [1] 1 27 125
RP(power = 3, x = c(1, 3, 5))
#> [1] 1 27 125