feature_count.Spatial: get the feature count from a spatial object

View source: R/extract_spatial.R

feature_count.SpatialR Documentation

get the feature count from a spatial object

Description

Tally the number of features in a spatial object

Usage

## S3 method for class 'Spatial'
feature_count(obj)

Arguments

obj

a spatial object from the sf package or sp package

return

a list with feature-count field

Details

not all sf or sp spatial classes are supported. If you run into one that you need, file an issue https://github.com/USGS-R/meddle/issues


USGS-R/meddle documentation built on April 29, 2023, 11:50 a.m.