Skip to content

Instantly share code, notes, and snippets.

@samuelleach
Created February 26, 2014 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelleach/9237802 to your computer and use it in GitHub Desktop.
Save samuelleach/9237802 to your computer and use it in GitHub Desktop.
Geocode with ggmap/R in Tableau
SCRIPT_STR("
library('ggmap');
geo <- geocode(.arg1, output='latlon');
geo$latlon <- do.call(paste, c(geo[c('lat','lon')], sep = ','));
geo$latlon
", ATTR([FULL ADDRESS]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment