poccs_thinOccs: poocs_thinOccs Thin occurrences

View source: R/poccs_thinOccs.R

poccs_thinOccsR Documentation

poocs_thinOccs Thin occurrences

Description

The function thins the observed occurrences by a user provided distance.

Usage

poccs_thinOccs(occs, thinDist, logger = NULL, spN = NULL)

Arguments

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.

Details

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.

Value

Output is a data frame of thinned occurences (all occurences at a distance >thinDist) with the same columns as occs

Author(s)

Jamie Kass <jamie.m.kass@gmail.com>

Gonzalo E. Pinilla-Buitrago <gepinillab@gmail.com>

See Also

thin

Examples

occs <- read.csv(system.file("extdata/Bassaricyon_neblina.csv",
                             package = "wallace"))
occs$occID <- 1:nrow(occs)
out.thin <- poccs_thinOccs(occs = occs, thinDist = 30)



wallaceEcoMod/wallace documentation built on March 24, 2024, 5:15 p.m.