evaluate: evaluate

Description Usage Arguments Value Examples

View source: R/evaluate.R

Description

Computes evaluation measures from observed and predicted data.

Usage

1
evaluate(df, observed, predicted)

Arguments

df

Data.frame. Required. A data.frame with observed and predicted data.

observed

Charachter value. Required. The name of the column in df with predicted data.The data must be of class numeric.

predicted

Charachter value or vector. Required. The names of the column(s) in df with predicted data. The data must be of class numeric.

Value

A data.frame with evaluation statistics. For details, see mri function.

Examples

1
2
3
df<-data.frame(obs=1:9, pred=c(2, 9, 10, 8, 3, 4, 6, 12, 1))
e<-evaluate(df, 'obs', 'pred')
print(e)

soilmapper/mapsRinteractive documentation built on March 7, 2020, 8:49 a.m.