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)

Chaos-Gao/MyStat302Package documentation built on March 20, 2021, 2 p.m.