Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wormsconsolidate

Recursivly retrieves respective "accepted" AphiaRecords for all synonyms if not already there


Description

takes data.frame as output by wormsbynames , wormsbymatchnames, or wormsbyid and retrieves additional Aphia records (CC-BY) for not-"accepted" records in order to ultimately have "accepted" synonyms for all records in the dataset.

Usage

wormsconsolidate(x, verbose = TRUE, sleep_btw_chunks_in_sec = 0.01,
  once = FALSE)

Arguments

x

data.frame

verbose

be verbose

sleep_btw_chunks_in_sec

pause between requests

once

only one retrival iteration. No concatination of output with result. (For debugging)

Details

This function will take a integer vector with AphiaIDs, retrive AphiaRecords from www.marinespecies.org using the GET /AphiaRecordByAphiaID Method described at http://www.marinespecies.org/rest/. Results will be outbut to a data.frame with each row being a record.

For examples, see wormsaccepted

Value

a data frame.


worms

Retriving Aphia Information from World Register of Marine Species

v0.2.2
GNU Affero General Public License
Authors
Jan Holstein [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.