This function redefines one or more columns of StoxBioticData by columns of BioticData.

RedefineStoxBiotic(
  StoxBioticData,
  BioticData,
  Redefinition = data.table::data.table(),
  SplitTableAllocation = c("Default", "Lowest", "Highest")
)

Arguments

StoxBioticData

An input of ModelData object

BioticData

An input of ModelData object

Redefinition

A table of the columns "VariableName", representing the variable to redefine; and "ReplaceBy", representing the variable from BioticData to replace by.

SplitTableAllocation

A string indicating how to split tables of the BioticData into tables of the StoxBiotic format, one of "Default" for the default mapping, "Lowest" for mapping variables to the lowest table (e.g. mapping variables from the fishstation level of BioticData from NMDBiotic files to the Haul level of StoxBioticData) and "Highest" for mapping variables to the highest table (e.g. mapping variables from the fishstation level of BioticData from NMDBiotic files to the Station level of StoxBioticData). See StoxBioticMapping for a description of the mapping for the different biotic input file formats.

Value

A StoxBioticData object.