powered by
Groups the geometric elements of a layer according to the values of the indicated attribute.
summarize_layer(layer, attribute)
A sf object.
sf
A string, attribute name.
Other star database geographic attributes: check_geoattribute_geometry(), define_geoattribute(), get_geoattribute_geometries(), get_geoattributes(), get_layer_geometry(), get_point_geometry()
check_geoattribute_geometry()
define_geoattribute()
get_geoattribute_geometries()
get_geoattributes()
get_layer_geometry()
get_point_geometry()
layer <- summarize_layer(us_layer_state, "REGION")
Run the code above in your browser using DataLab