Skip to contents

This function retrieves habitat data from a GlobalArchive synthesis using an API call. It processes the data to include relevant species information by merging with a benthic species list.

Usage

ga_api_habitat(username, password, synthesis_id)

Arguments

username

A character string representing your GlobalArchive username for API authentication.

password

A character string representing your GlobalArchive password for API authentication.

synthesis_id

A character string or numeric value representing the GlobalArchive synthesis ID for which the habitat data should be retrieved.

Value

A data frame containing habitat data retrieved from the GlobalArchive API. The data frame includes species information merged from the benthic species list.

Examples

if (FALSE) { # \dontrun{
# Retrieve habitat metadata from a synthesis
habitat <- ga_api_habitat(username = "your_username", password = "your_password", 
                                   synthesis_id = "your_synthesis_id")
print(habitat)
} # }