Skip to contents

An object of class Timeseries contains information for the Time Series chart. The Timeseries function is used both to create and modify an Timeseries-class() object, and to access and assign Timeseries for an object of class Slick-class(). See Details.

Usage

Timeseries(
  Code = "",
  Label = "",
  Description = "",
  Time = numeric(),
  TimeNow = numeric(),
  TimeLab = "Year",
  Value = array(),
  Preset = list(),
  Target = NULL,
  Limit = NULL
)

Timeseries(Slick) <- value

# S4 method for missing
Timeseries()

# S4 method for character
Timeseries(
  Code = "",
  Label = "",
  Description = "",
  Time = numeric(),
  TimeNow = numeric(),
  TimeLab = "Year",
  Value = array(),
  Preset = list(),
  Target = NULL,
  Limit = NULL
)

# S4 method for list
Timeseries(
  Code = "",
  Label = "",
  Description = "",
  Time = numeric(),
  TimeNow = numeric(),
  TimeLab = "Year",
  Value = array(),
  Preset = list(),
  Target = NULL,
  Limit = NULL
)

# S4 method for Slick
Timeseries(Code)

# S4 method for Slick
Timeseries(Slick) <- value

Arguments

Code

A short code for the Performance Indicators for this object. A character string length nPI or a named list for multi-language support. See Details

Label

A short label for the Performance Indicators for this object. Used to label axes on charts. Can be longer than Code but recommended to keep short as possible so it shows clearly in plots and tables. A character string length nPI or a named list for multi-language support. See Details

Description

A description for the Performance Indicators for this object. Can include Markdown, see Examples. A character string length nPI or a named list for multi-language support. See Details

Time

A numeric vector with values for the historical and projection time-steps. Must match length nTS in Value

TimeNow

A numeric value matching the last historical timestep in Time

TimeLab

Character string length 1. Name of the time step (e.g., 'Year'). Will be used as the label in the Kobe Time plot. Use a named list for multiple languages.

Value

A numeric array with the stochastic performance indicator values for each simulation (sim), operating model (OM), management procedure (MP), performance indicator (PI), and historical + projection timestep (nTS). Dimensions: c(nsim, nOM, nMP, nPI, nTS)

Preset

An optional named list for the preset buttons in the App(). The name of the list element will appear as a button in the App().

Target

Numeric vector length nPI with the target value for the PIs.

Limit

Numeric vector length nPI with the limit value for the PIs.

Slick

A Slick-class() object

value

A Timeseries-class() object

Details

Use plotTimeseries() to create the boxplot from the console.

Note

Character strings in Code, Label, and Description must all be same length as the number of performance indicators (nPIs) in Value

Objects of class Timeseries are created with Timeseries()

Multi-Language Support

Text with multi-language supported can be provided as a named list. Available languages:

  • en: English (default)

  • es: Spanish

  • fr: French

Use the Code(), Label(), Description(), Value(), Preset() functions to access and assign the values for an existing Timeseries object, see Examples

Functions

  • Timeseries(missing): Create an empty Timeseries object

  • Timeseries(character): Create a populated Timeseries object

  • Timeseries(list): Create a populated Timeseries object

  • Timeseries(Slick): Return Timeseries from a Slick-class() object

  • Timeseries(Slick) <- value: Assign a Timeseries-class() object to a Slick-class() object