Learn R Programming

mapsRinteractive (version 1.0.0)

evaluate: evaluate

Description

Computes evaluation measures from observed and predicted data.

Usage

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

Run this code
# NOT RUN {
df<-data.frame(obs=1:9, pred=c(2, 9, 10, 8, 3, 4, 6, 12, 1))
e<-evaluate(df, 'obs', 'pred')
print(e)

# }

Run the code above in your browser using DataLab