convertEcodataToMSSPM: Keyrun Ecodata to MSSPM Environmental Covariate Conversion

Description Usage Arguments Value Examples

View source: R/Keyrun_Ecodata_to_MSSPM.R

Description

Conversion of Keyrun (i.e., Ecodata) Environmental Covariate data to an MSSPM Covariate csv file

Usage

1
convertEcodataToMSSPM(colNames, inputDataFrames, region, vars, outputFile)

Arguments

colNames

The names of the covariate parameters that are used in MSSPM

region

The geographical region of interest (i.e., "GB","GOM","MAB")

vars

The description used in the data frame to specify the desired years' data

inputDataFrame

The input Ecodata data frames

outputfile

The output csv data file containing the MSSPM Covariate formatted data. N.B. The csv file must begin with "Covariate_".

Value

n/a

Examples

1
2
3
4
5
6
7
8
9
remotes::install_github("NOAA-EDAB/ecodata")

colNames <- list("chloro_a","bottom_temp","sea_surface_temp")
inputDataFrames <- list(ecodata::chl_pp,ecodata::bottom_temp,ecodata::seasonal_oisst_anom)
region <- "GB" # GB, GOM, or MAB (i.e., George's Bank, Gulf of Maine, Mid-Atlantic Bight)
vars <- list("ANNUAL_PPD_MEDIAN","bottom temp anomaly in situ","Spring OISST anomaly")
outputFile <- '/home/rklasky/test/Covariate_Keyrun.csv'

convertEcodataToMSSPM(colNames,inputDataFrames,region,vars,outputFile)

rklasky/rPackages documentation built on Feb. 9, 2022, 1:10 a.m.