Learn R Programming

EGRET (version 2.3.0)

setSeasonLabel: Create a character character that describes the period of analysis, when period of analysis has already been set in AnnualResults

Description

The period of analysis can be of any length from 1 month to 12 months. The period of analysis can have any starting month from 1 (January) through 12 (December). This function produces a character character that describes this period of analysis. For example "water year", "calendar year", "year starting with April", or "Season consisting of April, May, June". There is an alternative version of this function for the case where AnnualResults does not exist. This might arise in a call from plotConcTime or plotLogConcTime. That function is called setSeasonLabelByUser.

Usage

setSeasonLabel(localAnnualResults)

Arguments

localAnnualResults
data frame that contains the annual results, default is AnnualResults

Value

  • periodName character which describes the period of analysis

Examples

Run this code
eList <- Choptank_eList
Daily <- getDaily(eList)
AnnualResults <- setupYears(Daily)
setSeasonLabel(AnnualResults)

Run the code above in your browser using DataLab