Learn R Programming

geodimension (version 1.0.2)

get_empty_geometry_instances: Get empty geometry instances

Description

Get the instances of the data table that do not have associated geometry for the specified geometry type.

Usage

get_empty_geometry_instances(gl, geometry = NULL)

# S3 method for geolevel get_empty_geometry_instances(gl, geometry = NULL)

Value

A tibble.

Arguments

gl

A geolevel object.

geometry

A string, type of geometry of the layer.

See Also

Other level definition functions: check_key(), complete_point_geometry(), coordinates_to_geometry(), get_geometry()

Examples

Run this code
us_state_point <-
  coordinates_to_geometry(layer_us_state,
                          lon_lat = c("intptlon", "intptlat"))

state <-
  geolevel(name = "state",
           layer = layer_us_state,
           key = c("geoid")) |>
  add_geometry(layer = us_state_point)

empty_geometry_instances <- state |>
  get_empty_geometry_instances(geometry = "point")

Run the code above in your browser using DataLab