weighted_centroid: Weighted centroid

Description Usage Arguments Value

Description

Calculates the weighted centroid of an object of class sf with point geometry.

Usage

1

Arguments

points

object of class sf with point geometry.

weights

vector specifying the weight of each point.

Value

Returns an object of class sfc_POINT.


luukvdmeer/dockless documentation built on May 10, 2019, 1:24 p.m.