# Monthly Archives: April 2015

## How large vectors in R might be stored compactly

April 30, 2015
By

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 aren’t suitable for general use. It seems that lots of

## Upcoming talks about jsonlite and mongolite

April 30, 2015
By

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
By

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) and wrote this post. 1. The post Dockerizing a...

## Le Monde puzzle [#909]

April 30, 2015
By

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 leads

## Introduction to Applied Econometrics With R

April 30, 2015
By

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 Econometrics With R, and you can download it from...

## Using rvest and dplyr to look at aviation incidents

April 30, 2015
By

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 Safety Network can be found

## The First NY R Conference

April 30, 2015
By

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 at Workbench (the conference venue) set the bar pretty...

## EARL2015 Conference Agenda (London) Announced

April 30, 2015
By

? 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 →

April 30, 2015
By

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 around on Baseball Reference one day,

## Circle packing in R (again)

April 29, 2015
By

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 arrangement for them. Here's an example: And here's...