knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of the { healthyR.data } package is to provide a simple yet feature rich administrative data-set allowing for the testing of functions inside of the { healthyR } package. It can be used to test its functions or any function you create.
You can install the released version of healthyR.data from CRAN with:
install.packages("healthyR.data")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("spsanderson/healthyR.data")
This is a basic example which shows you how to solve a common problem:
library(healthyR.data) library(dplyr) df <- healthyR_data glimpse(df) df %>% count(ip_op_flag, service_line) %>% arrange(ip_op_flag, desc(n)) %>% rename(count = n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.