as_acs_5yr_geo {geogenr}R Documentation

Get an acs_5yr_geo object

Description

Once we have selected the topics that interest us and, possibly also the reports or subreports, we obtain an acs_5yr_geo object with which we can represent or export the geographic layer along with the data of interest more easily.

Usage

as_acs_5yr_geo(act)

## S3 method for class 'acs_5yr_topic'
as_acs_5yr_geo(act)

Arguments

act

An acs_5yr_topic object.

Value

An acs_5yr_geo object.

See Also

Other data exploitation and export functions: as_GeoPackage(), as_flat_table(), as_geomultistar(), as_star_database(), get_metadata(), set_metadata()

Examples


act <- anrc_2021_x01 |>
  select_report(report = "B01002-Median Age By Sex")

geo <- act |>
  as_acs_5yr_geo()


[Package geogenr version 2.0.1 Index]