pow: Raise a number to a power

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Ever use the command "pow(x, 3)" only to find that R does not have a pow function? I do this all the time out of habit because both JAGS and Stan use this, and matlab has the similar "power" function (but power does something else in R). This function exists to save frustration if you use the pow command to raise a number to a power by avoiding annoying error messages.

Usage

1
pow(x, lambda = NULL)

Arguments

x

a number

lambda

a power

Value

a number

Examples

1
pow(3, 4)

abnormally-distributed/Bayezilla documentation built on Oct. 31, 2019, 1:57 a.m.