Blog Archives

Stay on track: Plotting GPS tracks with R

September 18, 2014
By
Stay on track: Plotting GPS tracks with R

Many GPS devices and apps have the capability to track your current position via GPS. If you go walking, running, cycling, flying or driving, you can take a look at your exact route and your average speed.Some of these devices or apps also allow you to...

Read more »

Getting emotional in the absence of something: Using the Berlin Affective Word List to analyze emotional valence and arousal for nouns and adjectives.

August 28, 2014
By
Getting emotional in the absence of something: Using the Berlin Affective Word List to analyze emotional valence and arousal for nouns and adjectives.

This is something I did a while ago using the Berlin Affective Word List (BAWL).The BAWL contains ratings for 2902 German words (2107 nouns, 504 verbs, 291 adjectives). Ratings were collected for emotional valence (bad vs. good), arousal (the grade of valence) and imaginability (how well you can imagine the specific word). Please note, that I cannot...

Read more »

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 »