worms (version 0.2.1)

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)

Arguments

x

data.frame

verbose

be verbose

sleep_btw_chunks_in_sec

pause between requests

Value

a data frame.

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