View source: R/acs_5yr_selection.R
get_available_area_topics | R Documentation |
Gets the topics (report groups) for the given years of the Demographic and Economic Areas that are downloaded and unzipped, available to be queried.
get_available_area_topics(ac, area, years)
## S3 method for class 'acs_5yr'
get_available_area_topics(ac, area, years = NULL)
ac |
An |
area |
A string, area name. |
years |
A vector, year number. |
A vector, available report groups.
Other data selection functions:
as_acs_5yr_topic()
,
get_available_area_years()
,
get_available_areas()
,
get_geo_attribute_names()
,
get_geo_layer.acs_5yr_geo()
,
get_names_of_other_topics()
,
get_report_names()
,
get_subreport_names()
,
get_topic_name()
,
select_report()
,
select_subreport()
,
select_topic()
dir <- tempdir()
source_dir <- system.file("extdata/acs_5yr", package = "geogenr")
files <- list.files(source_dir, "*.zip", full.names = TRUE)
file.copy(from = files, to = dir, overwrite = TRUE)
ac <- acs_5yr(dir)
files <- ac |>
unzip_files()
topics <- ac |>
get_available_area_topics("Alaska Native Regional Corporation",
2021)
topics <- ac |>
get_available_area_topics("Alaska Native Regional Corporation")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.