Learn R Programming

geogenr (version 2.0.1)

get_metadata: Get the metadata layer

Description

The metadata layer includes the names and description through various fields of the variables contained in the reports.

Usage

get_metadata(geo)

# S3 method for acs_5yr_geo get_metadata(geo)

Value

A tibble object.

Arguments

geo

An acs_5yr_geo object.

Details

The way to select the variables we want to work with is to filter this layer and subsequently set it as the object's metadata layer using the set_metadata() function.

See Also

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

Examples

Run this code

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

geo <- act |>
  as_acs_5yr_geo()

metadata <- geo |>
  get_metadata()

Run the code above in your browser using DataLab