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, pow = 2)

Arguments

x

Numeric input to be raised to the power of power.

pow

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, pow = 3)

Codax2000/mypackage documentation built on Dec. 17, 2021, 2:59 p.m.