stiEvents: Compute events from STI values

Description Usage Arguments Details Value Author(s) Examples

View source: R/stiEvents.R

Description

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

Usage

1
stiEvents(values)

Arguments

values

a time ordered series of STI values.

Details

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

1
2
3
4
5
6
7
  "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

Value

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

Author(s)

Marc Fasel <marc.fasel@unige.ch>

Examples

1
2
3
data(engelberg)

stiEvents(sti(engelberg$Temperature, 12))

STI documentation built on May 29, 2017, 9 p.m.