pow: power functions

Description Usage Arguments Value Examples

View source: R/fun-power.R

Description

pow computes base to the power of x,
pow10 computes 10 to the power of x (inverse of log10),
and pow10 computes 2 to the power of x (inverse of log2)

Usage

1
2
3
4
5
pow(x, base = exp(1))

pow2(x)

pow10(x)

Arguments

x

a numeric vector

exponent

a single number

Value

A vector of the same length as x containing transformed values.

Examples

1
2
pow(2, 3)
pow10(log10(2))

olobiolo/siscreenr documentation built on Nov. 26, 2021, 3:08 p.m.