knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/"
)

salic

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.

Installation

# 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

Usage

See the vignette for an introduction.

A template workflow for national/regional dashboards is available at https://github.com/southwick-associates/dashboard-template

Example: fishing participation

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)


southwick-associates/salic documentation built on Nov. 5, 2019, 9:13 a.m.