countPointsInPolys: Count points within a polygon

Description Usage Arguments Value See Also

View source: R/R-GIS.R

Description

Overlays points on polygons and create a new polygon dataset with the count of the points in that polygon

Usage

1

Arguments

points

SpatialPoints

polys

SpatialPolygonsDataFrame

density

Return a density (point count divided by area) instead of a point count

by

Factor to return counts by. For instance, if by is a factor with two levels, instead of a single count variable being returned, two variables will be returned– the count of point type A in the polygon, and the count of point type B. The by factor must be of length length(points).

Value

SpatialPolygonsDataFrame

See Also

See Also as overlay


gsk3/taRifx.geo documentation built on May 17, 2019, 8:56 a.m.