check_geoattribute_geometry {rolap}R Documentation

Check a geoattribute geometry instances.

Description

Get unrelated instances of a geoattribute for a geometry.

Usage

check_geoattribute_geometry(db, dimension, attribute, geometry)

## S3 method for class 'star_database'
check_geoattribute_geometry(
  db,
  dimension = NULL,
  attribute = NULL,
  geometry = "polygon"
)

Arguments

db

A star_database object.

dimension

A string, dimension name.

attribute

A vector, attribute names.

geometry

A string, geometry name ('point' or 'polygon').

Details

We obtain the values of the dimension attribute that do not have an associated geographic element of the indicated geometry.

If there is only one geoattribute defined, neither the dimension nor the attribute must be indicated.

Value

A tibble.

See Also

Other star database geographic attributes: define_geoattribute(), get_geoattribute_geometries(), get_geoattributes(), get_layer_geometry(), get_point_geometry(), summarize_layer()

Examples


db <- mrs_db |>
  define_geoattribute(
    dimension = "where",
    attribute = "state",
    from_layer = us_layer_state,
    by = "STUSPS"
  )

instances <- check_geoattribute_geometry(db,
                                         dimension = "where",
                                         attribute = "state")


[Package rolap version 2.5.1 Index]