Simulation of Presidential Election 2016

Today is the presidential election. Regardless of the dirty things, we can do some simple simulation about the election. With the electoral college data, and the poll results from various sources, simple simulation can be performed. Look at this sophisticated model in R: http://blog.yhat.com/posts/predicting-the-presidential-election.html (If I have time after the election, I will do the simulation … More Simulation of Presidential Election 2016

rJava: Running Java from R, and Building R Packages Wrapping a .jar

While performing exploratory analysis, R is a good tool, although we sometimes want to invoke some stable Java tools. It is what the R Package rJava is for. To install it, simply enter on the R Console: And to load it, enter: As a simple demonstration, we find the length of a strength. Start the … More rJava: Running Java from R, and Building R Packages Wrapping a .jar