Experimental Code in the PhGcode Package

1. Installation

You can install PhGcode from Github (it will never be placed on CRAN, since it contains experimental code):

install.packages("devtools")
devtools::install_github("phgrosjean/R-code")

Look at the Github repository. You can get the csource from there.

To use the package, issue:

library(PhGcode)
sessionInfo()

2. The cube() function

This is a very simple function that takes the cube of its argument:

cube(1:5)

3. The cbrt() function

This is a the inverse of cube() that takes the cubic root of its argument:

cbrt(c(1, 8, 27, 64, 125))


phgrosjean/R-code documentation built on May 25, 2019, 2:55 a.m.