View source: R/metrics-binary.R
check_input_binary | R Documentation |
Function assesses whether the inputs correspond to the requirements for scoring binary forecasts.
check_input_binary(observed, predicted)
observed |
Input to be checked. Should be a factor of length n with
exactly two levels, holding the observed values.
The highest factor level is assumed to be the reference level. This means
that |
predicted |
Input to be checked. |
Returns TRUE if the check was successful and a string with an error message otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.