convertKeyrunObsBMtoMSSPM: Keyrun to MSSPM Biomass Conversion

Description Usage Arguments Value Examples

View source: R/Keyrun_ObsBM_to_MSSPM.R

Description

Conversion of Keyrun Survey Index file to MSSPM Observed Biomass csv file

Usage

1
2
3
4
5
6
convertKeyrunObsBMtoMSSPM(
  speciesMappingDataFrame,
  observedBMDataFrame,
  surveySeason,
  outputFile
)

Arguments

speciesMappingDataFrame

The data frame that contains a mapping of the SVSPP numeric values to corresponding species names (i.e., modelName)

observedBMDataFrame

The input survey index (i.e. biomass) data frame

surveySeason

The survey season data to convert (valid options are currently FALL or SPRING)

outputfile

The output csv data file containing the MSSPM observed biomass formatted data. N.B. The csv file must begin with "Biomass".

Value

n/a

Examples

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

speciesMappingDataFrame <- mskeyrun::focalSpecies # needed to map SVSPP value to modelName
observedBMDataFrame <- mskeyrun::surveyIndexA4
surveySeason <- 'SPRING' # Use 'FALL' or "SPRING"
outputFile <- paste('/home/rklasky/test/BiomassAbsolute_',surveySeason,'.csv',sep="")

convertKeyrunObsBMtoMSSPM(speciesMappingDataFrame,observedBMDataFrame,surveySeason,outputFile)

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