get_empty_geoinstances: Get empty instances of a geographic attribute

View source: R/geomultistar_get_empty_geoinstances.R

get_empty_geoinstancesR Documentation

Get empty instances of a geographic attribute

Description

Gets the instances of the given geographic attribute that do not have a geometry associated with them.

Usage

get_empty_geoinstances(gms, dimension = NULL, attribute = NULL)

## S3 method for class 'geomultistar'
get_empty_geoinstances(gms, dimension = NULL, attribute = NULL)

Arguments

gms

A geomultistar object.

dimension

A string, dimension name.

attribute

A string, attribute name.

Value

A sf object.

See Also

Other geo functions: define_geoattribute(), geomultistar(), run_geoquery()

Examples


gms <- geomultistar(ms = ms_mrs, geodimension = "where") |>
  define_geoattribute(
    attribute = "city",
    from_layer = usa_cities,
    by = c("city" = "city", "state" = "state")
  )

  empty <- gms |>
     get_empty_geoinstances(attribute = "city")


geomultistar documentation built on Sept. 11, 2024, 6:43 p.m.