Learn R Programming

wallace (version 2.2.0)

poccs_removeByID: poccs_removeByID Remove occurrence by ID

Description

This function removes user selected occurrences by ID.

Usage

poccs_removeByID(occs, removeID, logger = NULL, spN = NULL)

Value

A new occurence dataframe without the user selected occurrence mantaining all columns from original dataframe for further analyses.

Arguments

occs

data frame of cleaned occurrences obtained from component occs: Obtain occurrence data

removeID

the ID of the occurrence to be removed from the occurrences dataframe.

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.

Author

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

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

Details

This function is called by the remove occurrences by ID module. It allows for removal of a single occurrence flagged by the user on the map. The function will return a data frame of occurrences with all relevant columns for further analyses and without the occurrence selected by the user.

Examples

Run this code
occs <- read.csv(system.file("extdata/Bassaricyon_neblina.csv",
                 package = "wallace"))[, 2:3]
occs$occID <- 1:nrow(occs)
out.ID <- poccs_removeByID(occs, 11)

Run the code above in your browser using DataLab