This entry is intended to demonsrate how easy it is to use:
-
Stattleship’s API: http://playbook.stattleship.com/
-
the R package https://github.com/stattleship/stattleship-r
-
along with http://www.neo4j.org/ as a database,
This entry is intended to demonsrate how easy it is to use:
Stattleship’s API: http://playbook.stattleship.com/
the R package https://github.com/stattleship/stattleship-r
along with http://www.neo4j.org/ as a database,
Since my childhood, the countless model building with Lego bricks are fascinating me. Lego are plastic construction toys consisting of interlocking bricks that are used to construct a wide variety of models. Usually, Lego are sold as a collection of different designed pieces and an instruction book that visually describe the sequential building steps of a miniature model.
I always had a great fun using bricks to build different models that you have to imagine based on the bricks available. But this liberty to imagine new models comes with a great frustration when important pieces are missing to build it.
| # Write R data.frame to a Tableau data extract file (.tde) by building and executing | |
| # a python script which utilizes the Tableau data extract API (a hack, yes). | |
| # | |
| # This, naturally, has a hard dependency on the TDE API, so is only available for | |
| # Windows and Linux systems (unfortunately) | |
| # | |
| # Devin Riley | |
| # October, 2014 |
| import requests | |
| import base64 | |
| import json | |
| from simple_salesforce import Salesforce | |
| userName = '' | |
| password = '' | |
| securityToken = '' | |
| instance = '' |
| # Calculate age at a given reference date | |
| # Create an interval between the date of birth and the enrollment date; | |
| # intervals are specific to the two dates. Periods give the actual length | |
| # of time between those dates, so convert to period and extract the year. | |
| calc_age <- function(birthDate, refDate = Sys.Date()) { | |
| require(lubridate) |