Description Usage Arguments Value Examples
View source: R/Keyrun_ObsBM_to_MSSPM.R
Conversion of Keyrun Survey Index file to MSSPM Observed Biomass csv file
1 2 3 4 5 6 | convertKeyrunObsBMtoMSSPM(
speciesMappingDataFrame,
observedBMDataFrame,
surveySeason,
outputFile
)
|
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". |
n/a
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.