Open SanderDevisscher opened 3 months ago
n
see https://github.com/inbo/ClimateCastR/pull/32#discussion_r1715259279@soriadelva do you think cutoff is sufficient as coordinateUncertainty ? or should it be 2 x cutoff
or cutoff + cutoff/2
?
red = input points blue = grouped point
Fixes #21 by creating a function that allows users to group points within a
cutoff
from each other and apply afun
like 'sum' on then_obs
. The function returns a sf object with the same structure as the inputx
only with fewer rows.To speed up the function a
n
parameter has been added allowing the user to define the chunk size in which the distance matrix is calculated. This also allows to process species with high no observations. downside would be the distance matrix is only calculated within a chunk and points close to each other but in other chunks are not grouped as such.