getTaxonTable: Get NEON taxon table

View source: R/getTaxonTable.R

getTaxonTableR Documentation

Get NEON taxon table

Description

This is a function to retrieve a taxon table from the NEON data portal for the taxon type by the enduser.

Usage

getTaxonTable(
  taxonType = NA,
  recordReturnLimit = NA,
  stream = "true",
  token = NA
)

Arguments

taxonType

Character string for the taxonTypeCode. Must be one of ALGAE, BEETLE, BIRD, FISH, HERPETOLOGY, MACROINVERTEBRATE, MOSQUITO, MOSQUITO_PATHOGENS, SMALL_MAMMAL, PLANT, TICK

recordReturnLimit

Integer. The number of items to limit the result set to. If NA, will return all records in table.

stream

Character string, true or false. Option to obtain the result as a stream. Utilize for large requests.

token

User specific API token (generated within neon.datascience user accounts)

Value

data frame with selected NEON data

Author(s)

Eric R. Sokol esokol@battelleecology.org

References

License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007

Examples

# taxonTypeCode must be one of	
# ALGAE, BEETLE, BIRD, FISH,	
# HERPETOLOGY, MACROINVERTEBRATE, 
# MOSQUITO, MOSQUITO_PATHOGENS,	
# SMALL_MAMMAL, PLANT, TICK	
#################################	
# return the first 4 fish records	
taxa_table <- getTaxonTable('FISH', recordReturnLimit = 4)


neonUtilities documentation built on April 15, 2022, 1:06 a.m.