Skip to contents

Select area files for the given years. If no year is indicated, all available ones are selected.

Usage

select_area_files(ac, area, years)

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

Arguments

ac

An acs_5yr object.

area

A string, area name.

years

A vector, year number.

Value

An acs_5yr object.

Examples


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

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

ac <- ac |>
  select_area_files("State")