Learn R Programming

geogenr (version 2.0.1)

get_areas: Get area names of a group

Description

Gets the names of the Demographic and Economic Areas of a group or set of groups.

Usage

get_areas(ac, group)

# S3 method for acs_5yr get_areas(ac, group = NULL)

Value

A vector, area names.

Arguments

ac

An acs_5yr object.

group

A string, area group name.

Details

If no group is indicated, all available areas are obtained.

See Also

Other data download functions: acs_5yr(), download_selected_files(), get_area_file_names(), get_area_groups(), get_area_years(), 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)

areas <- ac |>
  get_areas(group = "Statistical Areas")

Run the code above in your browser using DataLab