Skip to contents

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)

Arguments

ac

An acs_5yr object.

group

A string, area group name.

Value

A vector, area names.

Details

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

Examples


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

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