count_features: Count simple feature objects

View source: R/layer_count.R

count_featuresR Documentation

Count simple feature objects

Description

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)


elipousson/overedge documentation built on Aug. 13, 2022, 7:41 p.m.