Skip to contents

Count the number of simple feature objects within a geometry or by some attribute contained in both the data and the corresponding boundary geometry.

Usage

count_features(
  data = NULL,
  boundaries = NULL,
  join = NULL,
  by = NULL,
  .id = "count",
  ...
)

Arguments

data

Data frame or sf object, Default: NULL

boundaries

Boundary data as an sf object, Default: NULL

join

The join function used by sf::st_join() if data is an sf object, Default: sf::st_intersects

by

Character string to join data by if data is not an sf object, Default: NULL

.id

Count column, Default: "count"

...

Additional parameters (not in use)