Monthly Archives: April 2015

How large vectors in R might be stored compactly

April 30, 2015
By
How large vectors in R might be stored compactly

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

Read more »

Upcoming talks about jsonlite and mongolite

April 30, 2015
By
Upcoming talks about jsonlite and mongolite

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...

Read more »

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

Read more »

Le Monde puzzle [#909]

April 30, 2015
By
Le Monde puzzle [#909]

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

Read more »

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,...

Read more »

Using rvest and dplyr to look at aviation incidents

April 30, 2015
By
Using rvest and dplyr to look at aviation incidents

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

Read more »

The First NY R Conference

April 30, 2015
By
The First NY R Conference

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...

Read more »

EARL2015 Conference Agenda (London) Announced

April 30, 2015
By
EARL2015 Conference Agenda (London) Announced

  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 »

How to Add WAR Metrics to your Lahman Database

April 30, 2015
By
How to Add WAR Metrics to your Lahman Database

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,

Read more »

Circle packing in R (again)

April 29, 2015
By
Circle packing in R (again)

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:

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)