pow: Generic power function

Description Usage Arguments Details Value

View source: R/pow.R

Description

This function raises a vector to any power. I'm making it internal, by not exporting, because I don't want users to use it.

Usage

1
pow(x, a, na.omit = FALSE)

Arguments

x

Vector to raise to some power

a

Power to raise x by

na.omit

whether or to remove NA, the default is FALSE

Details

This function isn't complicated. This function requires the input to be numeric, if it is not, an "invalid input" message will appear.

Value

A vector that is the power of x


QinxinLin/powers documentation built on May 24, 2019, 7:53 a.m.