Blog Archives

Graphing football world cup shots with rCharts

July 20, 2014
By

So, the FIFA World Cup is over. Germany won. Yay!Now with so much less football matches to watch, I tried the awesome new R package rCharts by Ramnath Vaidyanathan. In this case, I used the capability to generate NVD3 charts. Check it out...You ca...

Read more »

Hyperthreading FTW? Testing parallelization performance in R.

March 7, 2014
By
Hyperthreading FTW? Testing parallelization performance in R.

Alright, let's test some parallelization functionalities in R.The machine:MacBook Air (mid-2013) with 8 GB of RAM and the i7 CPU (Intel i7 Haswell 4650U). This CPU is hyper-threaded, meaning (at least that's my understanding of it) that it has two...

Read more »

Catching errors in R and trying something else

December 4, 2013
By

I recently encountered some functionality in R which most of you might already know. Nevertheless, I want to share it here, because it might come in handy for those of you who do not know this yet.Suppose you want to read in a large number of very large text tables in R. There is the great function fread() in...

Read more »

The ‘Deutsche Bahn’ (German Railway Corp.) is always late!!!! Or is it? And if, why?

November 28, 2013
By
The ‘Deutsche Bahn’ (German Railway Corp.) is always late!!!! Or is it? And if, why?

The biggest German railway company, the 'Deutsche Bahn', is subject of frequent emotional discussions about being late all the time. A big German newspaper, the Süddeutsche Zeitung built the so-called 'train monitor' (Zugmonitor). The data is (or was) made available in cooperation with OpenDataCity: http://www.opendatacity.de/zugmonitor-api/This API provided information about trains up until September, 29th 2013. After that, no...

Read more »

No surprises: More people tweet more. Visualizing twitter counts during election day.

October 20, 2013
By
No surprises: More people tweet more. Visualizing twitter counts during election day.

As if the R world needed another example of Twitter visualizations, right? Well, here we go anyway.At the beginning of 2013, Pablo Barberá released the first version of his R package 'streamR' (CRAN link). With this package, you can tap into the streaming capabilities of the Twitter API. I did so for 10 consecutive days. Luckily,...

Read more »

XML in R – A (German) tutorial / XML in R – ein Tutorial auf Deutsch

August 9, 2013
By

I used knitr to hack together a very short tutorial about XML in R.It's in German. And it's not very long. But, hey, it's free :)I hope it can be of help to someone who wants to get started with XML processing in R.Please feel free to post or send any ...

Read more »

The rbinding race: for vs. do.call vs. rbind.fill

May 14, 2013
By
The rbinding race: for vs. do.call vs. rbind.fill

Which function rbinds dataframes together fastest?First competitor: classic rbind in a for loop over a list of dataframesSecond competitor: do.call("rbind", <list of dataframes>)Third competitor: rbind.fill(<list of dataframes>) f...

Read more »

Funky music in funky months: Does my taste of music change over the year?

April 28, 2013
By
Funky music in funky months: Does my taste of music change over the year?

I already introduced some stuff I did with the last.fm API. But did you ever wonder if your taste of music changes over the year? Sunny music in the sunny months and dark music in darker months? Well, I did. And I want to check it out with the RLastFM ...

Read more »

TeXing R tables: Save yourself a lot of typing…

March 27, 2013
By
TeXing R tables: Save yourself a lot of typing…

I want to share a function I wrote for my dissertation. The function is useful for putting up to two R tables into one TeX table.You have to load the package 'languageR' to have the dataset 'dative' available.Let's suppose you have two tables, one with...

Read more »

Peace through Music. Country clustering using R and the last.fm API

March 3, 2013
By
Peace through Music. Country clustering using R and the last.fm API

last.fm is an internet radio and music suggestion service. Registered users can also use last.fm to 'scrobble' tracks they've been listening to. last.fm then keeps track of a user's statistics in terms of top artists, albums and tracks.Luckily, last.fm...

Read more »