clean_events: Clean events geometries

Description Usage Arguments Value Examples

View source: R/nkde_execution_functions.R

Description

Function to avoid having events at the same location.

Usage

1
clean_events(events, digits = 5, agg = NULL)

Arguments

events

The SpatialPointsDataFrame to contract (must have a weight column)

digits

The number of digits to keep

agg

A double indicating if the points must be aggregated within a distance. if NULL, then the points are aggregated by rounding the coordinates.

Value

A new SpatialPointsDataFrame

Examples

1
#This is an internal function, no example provided

spNetwork documentation built on Oct. 30, 2021, 5:06 p.m.