1 Reply Latest reply on Sep 21, 2017 3:56 PM by Hari Ankem

    Multiple parameters in R Script?

    shwetha sarma

      Hello,

       

      I'm working on a forecast project. I'm using R forecast package. Below is the script:

       

      SCRIPT_REAL("library(forecast);l<-length(.arg1);

      u<-.arg1[1:(l-.arg2[1])];n<-length(u);u[n]=.arg1[l];

      time <- ts(u,deltat=1/12,start=c(2015,1));

      fcast <- forecast(time, h=.arg2[1]);

      append(u,fcast$mean, after = n)",

      SUM([Sales]),[No. of Months to Forecast])

       

      'No.of Months to Forecast' being my parameter. Here's my question: I would like to add another parameter, Para2 to this. Is that possible?

       

      If so, how would I do that ?

       

      Thanks!