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

    Linear Regression in R from Tableau

    gokul m

      Hi,

       

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

       

      SCRIPT_REAL( "

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

          fit$coefficients[3];"

      , 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.