shuffle_members_options: Function to rank, order or sort ensemble members

View source: R/internal_shuffle_members_options.R

shuffle_members_optionsR Documentation

Function to rank, order or sort ensemble members

Description

Applies one of the functions rank, order or sort to the ensemble members.

Usage

shuffle_members_options(M, type, ...)

Arguments

M

is a matrix where the columns correspond to multivariate forecasts.

type

is a string of either 'rank', 'order' or 'sort'. This operation is applied to the rows

Details

No missing values should be present in M.

This function is used within schaake_shuffle() and ecc().

Value

a matrix where the ensemble members in M have been altered according to the function

Author(s)

Kate Saunders and Kirien Whan

Examples


M = matrix(c(2,3,1, 5,6,7), nrow = 2, byrow = TRUE)
shuffle_members(M, 'rank')
shuffle_members(M, 'order')
shuffle_members(M, 'sort')


katerobsau/depPPR documentation built on July 2, 2023, 10:48 p.m.