data analysis

R packages in Tableau calculation function

The reason I need geocoding at last blog is that I want to map the sale data in Tableau. Before I tried to use python script and google geocoding API key, I adopted the geocode() function from the ggmap library in R and put them in tableau calculation function. While, It doesn't work.

Luckily, the other R  package works! I use 'mvoutliers' package to analyze the outlier in the Tableau graph. R gives Tableau more analysis tools. It is amazing to use them together !

  

IF SCRIPT_REAL("

library(mvoutlier);
sign2(cbind(.arg1))$wfinal01

",

SUM([Sale Price])
Screen Shot 2018-01-17 at 4.32.26 PM.png