Learn R Programming

STI (version 0.1)

stiEvents: Compute events from STI values

Description

stiEvents returns a vector containing events occurence computed from the given STI values.

Usage

stiEvents(values)

Arguments

values
a time ordered series of STI values.

Value

stiEvents returns a vector of events occurence from "Extremely hot" to "Extremely cold".

Details

The stiEvents function allows computing events from a time ordered series of STI values. Events are defined as:

  "Extremely hot"    when STI >=  2.00
  "Very hot"          ''  STI >=  1.50 and <  2.00
  "Moderately hot"    ''  STI >=  1.00 and <  1.50
  "Near normal"       ''  STI <   1.00 and > -1.00
  "Moderately cold"   ''  STI <= -1.00="" and=""> -1.50
  "Very cold"         ''  STI <= -1.50="" and=""> -2.00
  "Extremely cold"    ''  STI <= -2.00="" <="" pre="">

Examples

Run this code
data(engelberg)

stiEvents(sti(engelberg$Temperature, 12))

Run the code above in your browser using DataLab