21 create function data thinning#33
Open
SanderDevisscher wants to merge 14 commits into
Open
Conversation
#21 lapply with progressbar
14 tasks
Collaborator
Author
|
Collaborator
Author
|
@soriadelva do you think cutoff is sufficient as coordinateUncertainty ? or should it be red = input points |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #21 by creating a function that allows users to group points within a
cutofffrom each other and apply afunlike 'sum' on then_obs. The function returns a sf object with the same structure as the inputxonly with fewer rows.To speed up the function a
nparameter 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.