download_cefas_data: Download CEFAS data using the CEFAS API

Description Usage Arguments Details Value Examples

Description

The function returns CEFAS data as a csv file directly loaded into R

Usage

1
download_cefas_data(recordset_id)

Arguments

recordset_id

is the ID number of the recordset to download.

Details

download_cefas_data takes one argument recordset_id. It loads the corresponding data into R. It takes one argument recordset_id that identifies the data to download. The list of csv files and their corresponding recordset ids can be found be running the function get_cefas_datasets and extracting the to_download object.

Value

a fields data.frame containg the name of all fields, an Id reference for each field, the type of information it contains, the exact column name and information about minimum/maximum values

Examples

1
2
3
mydata <- get_cefas_datasets()
mydownloadable <- mydata$to_download
get_cefas_dataset_fields(mydownloadable$Id[1])

MarineEcosystemResearchProgramme/merpWS documentation built on May 7, 2019, 2:51 p.m.