Learn R Programming

flatness (version 0.1.4)

rkhist.matrix: Method of S3 generic function rkhist for matrix objects

Description

This is the method called when the fcst argument in function rkhist is a matrix.

Usage

# S3 method for matrix
rkhist(fcst, obs, names = NULL, ...)

Arguments

fcst

an object containing the ensemble forecasts. It must be a matrix, each row containing a forecast.

obs

an object containing the observation associated to the forecast in fcst. It can be a vector or a matrix, whose length is the same as the number of row in fcst

names

a character vector. The row names in the returned rkhist object.

...

additional arguments, passed to function base::rank.

Value

An S3 object of class rkhist (indeed just 1-row matrix containing the count for each rank, with class == "rkhist").