labelSubspecies: Convert Occurence List to Labeled Dataframe

View source: R/labelSubspecies.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 occ2dfSubspeciesLabels(). 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 Feb. 28, 2025, 8 p.m.