AddPeriodStoxLanding: Add Period to StoxLandingData

View source: R/StoxBaselineFunctions.R

AddPeriodStoxLandingR Documentation

Add Period to StoxLandingData

Description

Add a column to StoxLandingData with a temporal category, such as quarters.

Usage

AddPeriodStoxLanding(
  StoxLandingData,
  TemporalDefinition,
  ColumnName = character()
)

Arguments

StoxLandingData

StoxLandingData data which will be annotated.

TemporalDefinition

TemporalDefinition definition of temporal category.

ColumnName

Name of the added column. Defaults to Period.

Details

A column with a temporal category will be added based on the column 'CatchDate' in 'StoxLandingData'. Temporal definitions (TemporalDefinition) may be produced by DefinePeriod

Since it may be useful to use different temporal categories for instance for parameterization and reporting two choices are offered for the name of the added column (see argument 'ColumnName').

Value

StoxLandingData with column appended. See StoxLandingData.

See Also

DefinePeriod for configuring the temporal definition, AddStratumStoxBiotic for similar function for sample data, PrepareRecaEstimate for use of 'Period' as an effect in Reca-estimation, and ReportFdaSampling for use of 'Period' as an aggregation variable when comparing sampling with landed volume.


StoXProject/RstoxFDA documentation built on Nov. 12, 2024, 3:42 a.m.