R/url.R

Defines functions cvap_census_url

Documented in cvap_census_url

#' Get Zip File URL for CVAP Special Tabulation Data
#'
#' @param year numeric. Year for the data in 2009 to 2021.
#'
#' @return string
#' @export
#'
#' @concept raw
#' @examples
#' cvap_census_url()
cvap_census_url <- function(year = 2021) {
  stringr::str_glue('https://www2.census.gov/programs-surveys/decennial/rdo/datasets/{year}/{year}-cvap/CVAP_{year - 4}-{year}_ACS_csv_files.zip')
}

Try the cvap package in your browser

Any scripts or data that you put into this service are public.

cvap documentation built on July 9, 2023, 7:27 p.m.