select_levels: Select levels

View source: R/relations.R

select_levelsR Documentation

Select levels

Description

Select a subset of the levels of the dimension so that the rest of the levels no longer belong to it.

Usage

select_levels(gd, level_names = NULL)

## S3 method for class 'geodimension'
select_levels(gd, level_names = NULL)

Arguments

gd

A geodimension object.

level_names

A vector of names.

Value

A geodimension object.

See Also

geodimension, geolevel

Other relationship between geolevels: complete_relation_by_geography(), get_unrelated_instances(), relate_levels()

Examples


gd_us_2 <- gd_us |>
  select_levels(level_names = c("state", "county", "place", "region"))


josesamos/geodimension documentation built on Jan. 25, 2024, 3:23 p.m.