Learn R Programming

scorer (version 0.1.0)

e: Calculate error between actual and forecast.

Description

e takes actual and forecast numeric vectors and returns a numeric vector where forecast is subtracted from the actual.

Usage

e(actual, forecast)

Arguments

actual
a numeric vector of actuals.
forecast
a numeric vector of forecasts.

Value

  • a numeric vector of errors.

Examples

Run this code
# Examples
e(1:100, 100:1)

Run the code above in your browser using DataLab