README.md

powers

The goal of the powers package is to make the computation of powers easier. There are built in functions to allow you to compute the square or cube of a vector, or compute an exponent of your choice.

To load the powers package use:

library(devtools)
devtools::install_github("KateJohnson/powers")

Once the package is loaded, you can see a short description of powers using:

library(powers)
?powers

And the full vignette using:

??"powers vignette"

Examples

There are three functions that are part of this package.

pow(2,3)
#> [1] 8
square(2)
#> [1] 4
cube(3)
#> [1] 27

Note: This is a practice package for STAT 547, you can seem my reflections on that assignment (for reviewers) here



KateJohnson/powers documentation built on May 29, 2019, 12:03 p.m.