The centroid Mean function returns a SpatialPointDataframe containing the Centroid mean of Points within ESRI Shapefile(s).

centroidMean(spat, pnt, count = T)

Arguments

spat

SpatialPolygonDataFrame; A file containing one or more Spatial Polygons

pnt

SpatialPointDataFrame; A file containing the Point cloud.

count

boolean; If T, count the number of points within one Polygon. OPTIONAL