labelSubspecies: Convert Occurence List to Labeled Dataframe

View source: R/IdentifyBirdSubspecies.R

labelSubspeciesR Documentation

Convert Occurence List to Labeled Dataframe

Description

This function converts a labeled list of subspecies occurences into a dataframe of occurences, with a column for subspecies, using occ2df_subspeciesLabels(). The latter function works only on a single subspecies whereas this function performs the task for all subspecies in the list.

Usage

labelSubspecies(subsppOccList, spp, subsppList)

Arguments

subsppOccList

A list of subspecies occurences from subspeciesOccQuery() or similar

Examples


listFromSubspeciesOcc = subspeciesOccQuery(spp="Cardinalis sinuatus",
   subsppList=c("sinuatus","peninsulae","fulvescens"),pointLimit=100,
   dbToQuery="gbif")
labeledLoc = labelSubspecies(subsppOccList=listFromSubspeciesOcc)
subsppNames = unique(labeledLoc$subspecies)

kaiyaprovost/subsppLabelR documentation built on March 17, 2024, 5:09 p.m.