Learn R Programming

rnbn (version 1.1.2)

getFeature: Get details for a given feature

Description

Given the featureID (an integer), this function get details of the taxon from the NBN Gateway. These include the label (name), feature type, etc. If the feature is a GridSquare then the information includes the bounding box coordinates.

Usage

getFeature(featureID = NULL, ...)

Arguments

featureID
A the featureID as a string
...
Further named parameters passed on to GET

Value

A list containing the JSON object returned by the NBN Gateway.

See Also

getOccurrences

Examples

Run this code
## Not run:  
#  t <- getFeature("97479")
#  t['label']  ## [1] "SN413499"
# ## End(Not run)

Run the code above in your browser using DataLab