Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.11 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.11 KB

Build Status Codecov test coverage Lifecycle: stable

Note: The real purpose of this R package is for demonstrating how to make an R package.

powers

This is an R package that gives sqrt() some friends by providing other power functions. The purrr package is used under the hood, so that either an (atomic) vector or a list can be input.

Installation

You can install powers from github with:

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

Example

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

library(powers)
reciprocal(2)
#> [1] 0.5
cube(list(1, 4, 5))
#> [1]   1  64 125