Skip to contents

Groups the geometric elements of a layer according to the values of the indicated attribute.

Usage

summarize_layer(layer, attribute)

Arguments

layer

A sf object.

attribute

A string, attribute name.

Value

A sf object.

Examples


layer <-
  summarize_layer(us_layer_state, "REGION")