I am new in Tableau, I am trying to write R Script for ARIMA model but I am getting error.
I wrote this code
SCRIPT_REAL("
library(forecast)
data <- ts(.arg2,start=c(2003,1),frequency=12);
ARIMAfit <- auto.arima(log10(data),approximation=FALSE,trace=FALSE);
fcast <- forecast(ARIMAfit,h=5);
",
ATTR( MONTH( [New] ) ), SUM( [Number of Tractor Sold] ) )
Tableau is showing The "calculation is valid" but once I am trying to plot my predicted result its showing..
the result returned by the script function is of an unexpected type
Any kind of help or snipped code will be very helpfull for me. Thanks...