my_pow: Power function

Description Usage Arguments Value Examples

View source: R/my_pow.R

Description

This function raises input to a power

Usage

1
my_pow(x, power = 2)

Arguments

x

Numeric input to be raised to the power of power.

power

Numeric input for the power that x will be raised to, defaults to 2.

Value

Numeric representing x raised to the power of power.

Examples

1
2
my_pow(4)
my_pow(4, power = 3)

jingnanyuan/STAT302package documentation built on April 2, 2020, 9:42 p.m.