knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/" )
salic is an R package for preparing and summarizing agency data. In particular, it aims to simplify the production of national/regional dashboards by providing a set of functions that work across state agencies.
# Install dependencies install.packages(c("dplyr", "data.table")) # Install salic f <- "https://github.com/southwick-associates/salic/releases/latest/download/salic" install.packages(paste0(f, ".zip"), repos = NULL) # for Windows install.packages(paste0(f, ".tgz"), repos = NULL) # for Mac install.packages(paste0(f, ".tar.gz"), repos = NULL, type = "source") # or from source
See the vignette for an introduction.
A template workflow for national/regional dashboards is available at https://github.com/southwick-associates/dashboard-template
Using rank_sale()
, make_history()
, and est_part()
library(dplyr) library(salic) # load data data(lic, sale) # build license history history <- lic %>% filter(type %in% c("fish", "combo")) %>% inner_join(sale, by = "lic_id") %>% rank_sale() %>% make_history(yrs = 2008:2018) # count total participants est_part(history)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.