Learn R Programming

geodimension (version 1.0.0)

select_levels: 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 geodimension select_levels(gd, level_names = NULL)

Value

A geodimension object.

Arguments

gd

A geodimension object.

level_names

A vector of names.

See Also

Other configuration functions: transform_crs()

Examples

Run this code
library(tidyr)

gds <- gd_us %>%
  select_levels(level_names = c("division", "region", "nation"))

Run the code above in your browser using DataLab