Learn R Programming

PAMscapes (version 0.7.0)

matchSeascape: Match Seascape Class to Data

Description

Downloads and matches relevant Seascape class data from the ERDDAP (Environmental Research Division's Data Access Program) server at https://cwcgom.aoml.noaa.gov/erddap/index.html. More information on theclasses can be found on the help page for the seascapeR package https://marinebon.github.io/seascapeR/index.html.

Usage

matchSeascape(x, type = c("monthly", "8day"), progress = TRUE)

Value

the same dataframe as x, but with new columns seascapeClass and seascapeProb representing the "CLASS" and "P" variables from the dataset

Arguments

x

a dataframe with columns UTC, Latitude and Longitude to add environmental data to

type

the type of seascape data to download, one of "monthly" or "8day"

progress

logical flag whether or not to show download progress

Author

Taiki Sakai taiki.sakai@noaa.gov

Details

This function is just a wrapper around matchEnvData pointing to the specific base URL and dataset ID relevant for seascape data