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

Description Usage Arguments Details

View source: R/extract_spatial.R

Description

Tally the number of features in a spatial object

Usage

1
2
## 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 Nov. 21, 2020, 7:44 p.m.