Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

mapview (version 2.4.0)

npts: count the number of points/vertices/nodes of sf objects

Description

count the number of points/vertices/nodes of sf objects

Usage

npts(x)

Arguments

x

an sf/sfc object

Examples

Run this code
# NOT RUN {
npts(franconia)
npts(sf::st_geometry(franconia[1, ])) # first polygon

npts(breweries) # is the same as
nrow(breweries)

# }

Run the code above in your browser using DataLab