Learn R Programming

flatness (version 0.1.4)

rkhist.data.frame: Method of S3 generic function rkhist for data.frame objects

Description

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

Usage

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

Arguments

fcst

an object containing the ensemble forecasts. It must be a data frame, 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").