Skip to contents

Get area url file names for the given years. If no year is indicated, all available ones are obtained.

Usage

get_area_file_names(ac, area, years)

# S3 method for acs_5yr
get_area_file_names(ac, area, years = NULL)

Arguments

ac

An acs_5yr object.

area

A string, area name.

years

A vector, year number.

Value

A vector, file urls.

Examples


dir <- system.file("extdata/acs_5yr", package = "geogenr")
ac <- acs_5yr(dir)

url <- ac |>
  get_area_file_names("State", 2019:2021)

url <- ac |>
  get_area_file_names("State")