R/ojo_quick_refresh.R

Defines functions ojo_quick_refresh

ojo_quick_refresh <- function(site, casetype, year, reverse = FALSE) {
  if (str_to_upper(site) == "OSCN") {
    
    mclapply(oscn_counties, function(x) oscn_scrape_all(x, casetype, year, reverse = reverse),
             mc.cores = 8)
    
  } else if (str_to_upper(site) == "ODCR") {
    
    mclapply(odcr_counties, function(x) odcr_scrape_all(x, casetype, year, reverse = reverse),
             mc.cores = 8)
    
  }
}
openjusticeok/ojo documentation built on Feb. 2, 2021, 5:47 a.m.