powered by
Function to avoid having events at the same location.
clean_events(events, digits = 5, agg = NULL)
The SpatialPointsDataFrame to contract (must have a weight column)
The number of digits to keep
A double indicating if the points must be aggregated within a distance. if NULL, then the points are aggregated by rounding the coordinates.
A new SpatialPointsDataFrame
# NOT RUN { #This is an internal function, no example provided # }
Run the code above in your browser using DataLab