Skip to contents

Get the names of levels included in the geodimension that are related to the given level and are upper levels. We can get only the direct levels or the levels reached by passing through other levels.

Usage

get_higher_level_names(gd, level_name, indirect_levels)

# S3 method for geodimension
get_higher_level_names(gd, level_name = NULL, indirect_levels = FALSE)

Arguments

gd

A geodimension object.

level_name

A string.

indirect_levels

A boolean.

Value

A vector of names.

See also

Examples


ln_1 <- gd_us |>
  get_higher_level_names(level_name = "place")

ln_2 <- gd_us |>
  get_higher_level_names(level_name = "place", indirect_levels = TRUE)