bioacoustica.getOrthopteraNamesNoSubgenus: Get list of Orthoptera taxa from BioAcoustica with no...

Description Usage Arguments Value Author(s) Examples

Description

Used by the AAO project.

Usage

1

Arguments

c

An authenticated CURL handle.

Value

A list of names.

Author(s)

Ed Baker

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
bioacoustica.getOrthopteraNamesNoSubgenus <- function(c) {
  ba_names <- unique(read.csv(text = DrupalR::drupalr.get("http://bio.acousti.ca/", "aao/orthoptera", c)))
  ba_subspecies <- unique(read.csv(text = DrupalR::drupalr.get("http://bio.acousti.ca/", "aao/orthoptera/subspecies", c)))
  ba_names <- rbind(ba_names, ba_subspecies)
  ba_names$SupertreeTaxon <- gsub(' ', '_', ba_names$SupertreeTaxon)
  return(ba_names)
}

BioAcoustica/bioacousticaR documentation built on May 5, 2019, 3:46 p.m.