View source: R/poccs_thinOccs.R
poccs_thinOccs | R Documentation |
The function thins the observed occurrences by a user provided distance.
poccs_thinOccs(occs, thinDist, logger = NULL, spN = NULL)
occs |
data frame of cleaned occurrences obtained from component occs: Obtain occurrence data |
thinDist |
distance in kilometers to be used for thinning. Number must be positive. |
logger |
Stores all notification messages to be displayed in the Log Window of Wallace GUI. Insert the logger reactive list here for running in shiny, otherwise leave the default NULL. |
spN |
data frame of cleaned occurrences obtained from component occs: Obtain occurrence data. Used to obtain species name for logger messages. |
This function is called by the component poccs: process occurrence data to thin the occurrence data to a user specified distance. Providing an output with preserved columns appropriate for further analyses and a maximized number of occurrences that are separated by at least the provided distance.
Output is a data frame of thinned occurences (all occurences at a distance >thinDist) with the same columns as occs
Jamie Kass <jamie.m.kass@gmail.com>
Gonzalo E. Pinilla-Buitrago <gepinillab@gmail.com>
thin
occs <- read.csv(system.file("extdata/Bassaricyon_neblina.csv",
package = "wallace"))
occs$occID <- 1:nrow(occs)
out.thin <- poccs_thinOccs(occs = occs, thinDist = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.