Skip to contents

Finds the arithmetic mean weighted by the area column, which is auto-created in the spatial datasets.

Usage

SpatialWeightedMean(x, na.rm = TRUE)

Arguments

x

values to aggregate

na.rm

default na.rm = TRUE finds the aggregation ignoring NA, opposite usual na.rm default na.rm = FALSE, which returns NA if there are any NA.

Value

summarised data