Skip to contents

A geodimension object is created. A geodimension allows us to relate levels. In addition to the name of the geodimension , a level has to be given.

Usage

geodimension(name = NULL, level = NULL, snake_case = FALSE)

Arguments

name

A string, name of the dimension.

level

A geolevel.

snake_case

A boolean, transform all names to snake_case.

Value

A geodimension object.

See also

geolevel, relate_levels, get_level_layer

Other geodimension definition functions: add_level(), set_level_data(), transform_crs()

Examples


layer_us_place <- get_level_layer(gd_us, "place")

place <-
  geolevel(name = "place",
           layer = layer_us_place,
           key = "geoid")
gd <-
  geodimension(name = "gd_us",
               level = place)