events: events: determines the number of events

Description Usage Arguments Value Examples

Description

events is used to calculate the total number of events (e.g. number of rainfall events).

Usage

1
events(x)

Arguments

x

a vector with 0, indicating non-event (e.g. no rainfall), and any other value indicating an event.

Value

an integer representing the total number of events.

Examples

1
2
prec <- sample(rep(0:10,10))
events(prec)

ilyamaclean/climvars documentation built on June 19, 2019, 2:22 p.m.