tr_usda

0th

Percentile

USDA plants data

USDA plants data

Usage
tr_usda(query = list(), limit = 30, offset = 0, fields = NULL, ...)
Arguments
query

(character) query terms in a named list

limit

(integer) number of records to return

offset

(integer) record number to start at

fields

(character) vector of fields to return, case sensitive

...

Curl options passed on to [crul::HttpClient()]

Details

beware: this data is a bit old, from a dump of their data from a while back.

Value

list, with metadata fields ("count", "returned", "citation", "terms"), and a data.frame in "data"

References

https://plantsdb.xyz, https://github.com/sckott/usdaplantsapi

Aliases
  • tr_usda
Examples
# NOT RUN {
tr_usda(query = list(genus = "Magnolia"))
tr_usda(query = list(genus = "Magnolia", species = "grandiflora"))

tr_usda(limit = 30)
tr_usda(limit = 3)
tr_usda(limit = 3, offset = 3)

tr_usda(fields = c('Id', 'Symbol', 'Genus', 'Species'))
# }
Documentation reproduced from package traits, version 0.4.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.