Learn R Programming

extras (version 0.2.0)

pow: Power

Description

R equivalent to the power function.

Usage

pow(x, n)

Arguments

x

A numeric atomic object of the base.

n

A numeric atomic object of the exponent.

Value

A numeric atomic object of x raised to n.

Details

Wrapper on x^n.

See Also

Other translations: fabs(), ilogit(), invlogit(), log<-(), logit<-(), logit(), phi()

Examples

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

Run the code above in your browser using DataLab