1 Reply Latest reply on Apr 10, 2018 2:11 PM by Patrick Van Der Hyde

    Linear Regression in R from Tableau

    gokul m



      I am trying to call a simple R script from Tableau and he is the script


      SCRIPT_REAL( "

          fit = lm( .arg1 ~ .arg2 + .arg3 + .arg4);


      , SUM([x1]),SUM([x2]), SUM([x3]), SUM([x4]) )


      Here is the error i am getting



      Below is the same output from R console



      Where help with where i am going wrong in my script from Tableau.