rnoaa (version 0.2.0)

erddap_info: Get information on an ERDDAP dataset.

Description

Gives back a brief data.frame for quick inspection and a list of more complete metadata on the dataset.

Usage

erddap_info(datasetid, callopts = list())

Arguments

datasetid
Dataset id
callopts
Further args passed on to httr::GET (must be a named parameter)

Value

A list of length two
  • variables Data.frame of variables and their types
  • alldata List of data variables and their full attributes

Examples

Run this code
## Not run: ------------------------------------
# erddap_info(datasetid='erdCalCOFIfshsiz')
# out <- erddap_info(datasetid='erdCinpKfmBT')
# ## See brief overview of the variables and range of possible values, if given
# out$variables
# ## all information on longitude
# out$alldata$longitude
# ## all information on Haliotis_corrugata_Mean_Density
# out$alldata$Haliotis_corrugata_Mean_Density
## ---------------------------------------------

Run the code above in your browser using DataCamp Workspace