Learn R Programming

rfishbase (version 0.2-2)

fishbase: Query the XML page of fishbase given a fishbase id and return the XML R object

Description

Query the XML page of fishbase given a fishbase id and return the XML R object

Usage

fishbase(fish.id, curl = getCurlHandle(), server = 2)

Arguments

fish.id
the id number used by fishbase, ranges 1:70000 though wiht many missing values
curl
curlHandle(), please store value to avoid repeated handshaking.
server
the index of the server to use. 1 is sinica (Tiawan), 2 is US.

Value

  • a list object with the contents of the major datatypes in the the fishbase database.

Details

Typically this function will only be called internally by the caching function.

See Also

getData and updateCache.

Examples

Run this code
# NileTilapia <- fishbase("2")

Run the code above in your browser using DataLab