This R package was built in STAT545 at UBC, and is intended for teaching/learning purposes only
This R package can be installed from github:
#install.package("devtools")
devtools::install_github("margotgunning/powers")
## Downloading GitHub repo margotgunning/powers@master
## from URL https://api.github.com/repos/margotgunning/powers/zipball/master
## Installing powers
## "C:/PROGRA~1/R/R-34~1.2/bin/x64/R" --no-site-file --no-environ --no-save \
## --no-restore --quiet CMD INSTALL \
## "C:/Users/Margot/AppData/Local/Temp/RtmpqosJGk/devtools2e64671024f8/margotgunning-powers-7f658c3" \
## --library="C:/Users/Margot/Documents/R/win-library/3.4" \
## --install-tests
##
This can also be seen in the vignette, which I also haven't finished yet
powers::square(2)
## [1] 4
#>[1] 4
powers::cube(9)
## [1] 729
#>[1] 729
powers::box_cox_transform(2,-1)
## [1] 0.5
#>[1] 0.5
powers::inverse_box_cox_transform(0.5,-1)
## [1] 2
#>[1] 2
Not much to say here because this is a learning tool.
There is an internal function called pow that is the machinery for the sqaure function, and cube function.
The box-cox transformation functions do not use the internal function pow. Something else I wanted to look at was adding in a condition to make a dataframe in the input for response and t_params had lenghts greater than one; but I did not have time to do this.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.