# April 2015

### How large vectors in R might be stored compactly

April 30, 2015 |

Vectors in R can currently have elements of two sizes — 8-byte double-precision floating-point elements for `numeric’ vectors, or 4-byte elements for `integer’ or `logical’ vectors.  You can also have vectors whose elements are 1-byte `raw’ values, but these raw vectors don’t support negative numbers, or NA values, so they ... [Read more...]

### Upcoming talks about jsonlite and mongolite

April 30, 2015 |

This summer I will be giving an invited talk at the annual French R Meeting in Grenoble as well as a shorter talk at UseR 2015 in Aalborg. The presentations will feature some recent R packages in the json/web space (curl, jsonlite, mongolite, V...

### Dockerizing a Shiny App

April 30, 2015 |

After a long pause of more than four months, I am finally back to post here. Unfortunately, many commitments prevented me keep posting, but coming back, i changed the deployment (now this blog runs entirely within a docker container with some other cool things I intend to post more forward) ... [Read more...]

### Le Monde puzzle [#909]

April 30, 2015 |

Another of those “drop-a-digit” Le Monde mathematical puzzle: Find all integers n with 3 or 4 digits an single interior zero digit, such that removing that zero digit produces a divider of x. As in puzzle #904, I made use of the digin R function: and simply checked all integers up to 10⁶: which ...

### Introduction to Applied Econometrics With R

April 30, 2015 |

I came across a January post from David Smith at Revolution Analytics, in his Revolutions blog. It's titled, An Introduction to Applied Econometrics With R, and it refers to a very useful resource that's been put together by Bruno Rodrigues of the University of Strasbourg. It's called Introduction to Programming ... [Read more...]

### Using rvest and dplyr to look at aviation incidents

April 30, 2015 |

For a project I recently faced the issue of getting a database of all aviation incidents. As I really wanted to try Hadley’s new rvest-package, I thought I will give it a try and share the code with you. The data of aviation incidents starting in 1919 from the Aviation ... [Read more...]

### The First NY R Conference

April 30, 2015 |

by Joseph Rickert Last Friday and Saturday the NY R Conference briefly lit up Manhattan's Union Square neighborhood as the center of the R world. You may have caught some of the glow on twitter. Jared Lander, volunteers from the New York Open Statistical Programming Meetup along with the staff ... [Read more...]

### EARL2015 Conference Agenda (London) Announced

April 30, 2015 |

The full agenda for the London EARL2015 Conference has now been announced.  The conference focusses on the real world commercial usage and business applications of the R Language and features speakers from companies such as Shell, Allianz, KPMG, UBS, … Continue reading → [Read more...]

April 30, 2015 |

I get a lot of questions on how to calculate WAR in the Lahman database. In the past I’ve discussed ways to calculate wOBA and FIP in Lahman but WAR has always been difficult due to the “closed-source” nature of the calculation. But there is an answer While stumbling ... [Read more...]

### Circle packing in R (again)

April 29, 2015 |

Back in 2010 I posted some R code for circle packing. Now, just five years later, I've ported the code to Rcpp and created a little package which you can find at GitHub.The main function is circleLayout which takes a set of overlapping circles and tries to find a non-overlapping ... [Read more...]

### Wakefield: Random Data Set (Part II)

April 29, 2015 |

This post is part II of a series detailing the GitHub package, wakefield, for generating random data sets. The First Post (part I) was a test run to gauge user interest. I received positive feedback and some ideas for improvements, … Continue reading →

### Modeling the Latent Structure That Shapes Brand Learning

April 29, 2015 |

What is a brand? Metaphorically, the brand is the white sphere in the middle of this figure, that is, the ball surrounded by the radiating black cones. Of course, no ball has been drawn, just the conic thorns positioned so that we construct the sphere ... [Read more...]

### the most patronizing start to an answer I have ever received

April 29, 2015 |

Another occurrence [out of many!] of a question on X validated where the originator (primitivus petitor) was trying to get an explanation without the proper background. On either Bayesian statistics or simulation. The introductory sentence to the question was about “trying to understand how the choice of priors affects a ... [Read more...]

### Visualizing fits, inference, implications of (G)LMMs with Jaime Ashander

April 29, 2015 |

A couple of weeks at the Davis R Users’ Group, Jaime Ashander gave a presentation on and visualizing and diagnosing (G)LMMs in R. Here’s the video: Jaime also wrote up the notes from his talk, including all the code, on his blog here (with the raw R Markdown ... [Read more...]

### Turning Data Into Awesome With sqldf and pandasql

April 29, 2015 |

Both R and Python possess libraries for using SQL statements to interact with data frames. While both languages have native facilities for manipulating data, the sqldf and pandasql provide a simple and elegant interface for conducting tasks using an intuitive framework that’s widely used by analysts.         R and sqldf ...

### R, Python, MATLAB, & Excel Dashboards & Graphs with D3.js & WebGL

April 29, 2015 |

Web tools like D3.js and WebGL let you make beautiful, interactive 2D and 3D graphs. You can now publish graphs and dashboards with these technologies using Python, R, MATLAB, & Excel. Publishing and sharing is one extra line of code. This post puts you on your way, no downloads or ... [Read more...]

### Benchmarks of RRO on OSX and Ubuntu

April 29, 2015 |

Bay Area engineer Vineet Abraham recently ran some benchmarks for Revolution R Open (RRO) running on Mac OS X and on Ubuntu. Thanks to the multi-threaded processing capabilites of RRO, several operations ran much faster than R downloaded from CRAN, without having to change any code: For the most part, ... [Read more...]

### See R in action at the BUILD conference

April 29, 2015 |

Build 2015, the Microsoft conference which brings around 5,000 developers to the Moscone Center in San Francisco, begins tomorrow. The conference is sold out, but you can livestream the keynote presentations from buildwindows.com to catch all the big announcements. You can also follow along on Twitter at the #Build2015 hashtag. There ... [Read more...]

### Finance-YahooQuote 0.25 hotfix

April 29, 2015 |

A hotfix release for the Finance-YahooQuote Perl module on CPAN is now available. Available Yahoo! Finance decided to change the base URL. My thanks to Nicola Chiapolini who not only noticed but also sent me the one-line patch fixing this:
--- YahooQuote.pm~      2010-03-27 01:44:10.000000000 +0100
+++ YahooQuote.pm       2015-04-29 11:31:20.407926674 +0200
@@ -34,7 +34,7 @@
\$VERSION = '0.24';

## these variables govern what type of quote the modules is retrieving
\$QURLformat = "snl1d1t1c1p2va2bapomwerr1dyj1x";        # default up to 0.19
\$QURLextended = "s7t8e7e8e9r6r7r5b4p6p5j4m3m4";        # new in 0.20
\$QURLrealtime = "b2b3k2k1c6m2j3"; # also new in 0.20