Learn R Programming

geogenr (version 2.0.1)

get_area_file_names: Get area file names

Description

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)

Value

A vector, file urls.

Arguments

ac

An acs_5yr object.

area

A string, area name.

years

A vector, year number.

See Also

Other data download functions: acs_5yr(), download_selected_files(), get_area_groups(), get_area_years(), get_areas(), get_selected_file_names(), get_too_heavy_file_names(), select_area_files(), unzip_files()

Examples

Run this code

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")

Run the code above in your browser using DataLab