This seems really simple but for some reason it doent work;
here is the R script;
x <- c(-50, -25, -12, 0, 12, 25, 50)
y <- c(1,2,3,4,5,6,7)
z<- approx(x,y, 5)
using Tableau -
The results returned by the SCRIPT function is of an unexpected type.
the data is a two tabled column with 7 rows....Shock and Value. Any thoughts?
May be something like this:
SCRIPT_REAL("z <- approx(.arg1,.arg2,.arg3)z$y",SUM([Shock]),SUM([Value]),5)
z <- approx(.arg1,.arg2,.arg3)
Please find the attached (version 10.2).
Become a Viz Whiz on the Forums!
Support the Community and master Tableau.
Retrieving data ...