inst/doc/powers_vignette.R

## ------------------------------------------------------------------------
library(powers)

## ------------------------------------------------------------------------
square(2)
cube(3.5)
reciprocal(0.5)

## ------------------------------------------------------------------------
square(1:10)
cube(1:10)
reciprocal(1:10)

## ------------------------------------------------------------------------
square(TRUE)
cube(FALSE)
reciprocal(FALSE)

## ------------------------------------------------------------------------
my_plot <- square(1:20, plot_it = TRUE, returnVal = FALSE, returnPlot = TRUE)

## ------------------------------------------------------------------------
my_plot2 <- pwr(1:20, a = 5, plot_it = TRUE, returnVal = FALSE, returnPlot = TRUE)

## ------------------------------------------------------------------------
pwr("This text should repeat thrice.", a = 3)

## ------------------------------------------------------------------------
pwr("The output of this should be T", a = 0)

## ------------------------------------------------------------------------
pwr("Hello World", a = -3)
HScheiber/powers documentation built on May 22, 2019, 1 p.m.