Skip to content

MalcolmNSB/powers

 
 

Repository files navigation

Build Status

Note: This R package is not mean to be "serious". It's just for teaching purposes.

powers, Box-Cox transform

This is an R package that allows you to compute power functions. You can also compute a Box-Cox transform.

Installation

You can install powers from github with:

# install.packages("devtools")
devtools::install_github("MalcolmNSB/powers")

Example

See the vignette for more extensive use, but here's an example:

powers::reciprocal(2)
#> [1] 0.5
powers::square(2)
#> [1] 4
powers::cube(2)
#> [1] 8
powers::Box_Cox_transform(c(1,2), c(3,4))
#> [1] 41.33333 71.66667
powers::Box_Cox_transform(1,2)
#> [1] 0

For Developers

(Again, I don't actually intend for anyone to develop this silly package, but if I did, here's what I'd write.)

Use the internal pow function as the machinery for the front-end functions such as square, cube, reciprocal, and Box_Cox_transform.

About

A silly toy R package to compute powers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 100.0%