## ------------------------------------------------------------------------
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.