rank_ensemble: Rank of Observation

Description Usage Arguments Details Value Author(s) Examples

Description

Computes the rank of an observation among the corresponding ensemble forecasts.

Usage

1
rank_ensemble(ens, obs_col, mem_col)

Arguments

ens

A data frame with one observation column and at least one forecast column.

obs_col

The observation column.

mem_col

The column(s) of the forecast members(s).

Details

Ranks are computed with rank and ties.method = 'first'.

Value

A vector of the same length as rows of ens.

Author(s)

J. Gross, A. Moeller.

Examples

1
2
x <- rank_ensemble(Magdeburg, obs_col = 6, mem_col = 7:56)
table(x)

JuGross/ensAR documentation built on May 10, 2019, 8:23 a.m.