knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-", fig.width = 6, fig.height = 2.3, fig.align = "center" ) library(ggplot2) theme_set(theme_bw())
This package contains data sets and some utility functions to support Foundations and Applications of Statistics: An Introduction Using R by Randall Pruim.
The package can be installed from CRAN via
install.packages("fastR2")
or from github via
# install.packages("devtools") devtools::install_github("rpruim/fastR2")
In addtion to data sets, fastR2
contains a snippet()
function that
loads and executes code found in the text. Here is an example:
require(fastR2) snippet("histogram01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.