knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(smokingPrevalence)
The data is released in wide form and the following imports this data as it appears in the spreadsheet form:
get_smoking_wide(clean = FALSE)
To tidy the wide data which combines the 2 row headers to 1 and removes blank rows and columns:
get_smoking_wide() #or explicitly get_smoking_wide(clean = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.