Blog Archives

One Solution to the ‘stringsAsFactors’-Problem Or: Hell-Yeah there is HELLNO

December 23, 2015
By
One Solution to the ‘stringsAsFactors’-Problem Or: Hell-Yeah there is HELLNO

Base R's stringsAsFactors default setting is supposedly the most often complained about piece of code in the whole R infrastructure. A search through the source code of all CRAN packages in December 2015 (Link) resulted in 3,492 mentions of stringsAsFactors. Most of the time these explicit mentions where found within calls to data.frame() or as.data.frame() and simply set the...

Read more »

Using Wikipediatrend

June 8, 2015
By
Using Wikipediatrend

What do Wikipedia's readers care about? Is Britney Spears more popular than Brittany? Is Asia Carrera more popular than Asia? How many people looked at the article on Santa Claus in December? How many looked at the article on Ron Paul? What can you find? Source: http://stats.grok.se/ The wikipediatrend package provides convenience access to daily page view counts (Wikipedia article traffic...

Read more »

Making R Files Executable (under Windows)

February 18, 2015
By

Although it is reasonable that R scripts get opened in edit mode by default, it would be even nicer (once in a while) to run them with a simple double-click. Well, here we go ... Choosing a new file extension name (.Rexec) First, we have to think about a new file extension name. While double-click to run is a nice-to-have, the...

Read more »

Introduction to Public Attention Analytics with Wikipediatrend

December 10, 2014
By
Introduction to Public Attention Analytics with Wikipediatrend

Elections are the most important events of political life. Their results determine who gets to be in government for the next few years. But how long do elections and their results capture the public's attention? In this blog post we take a look at Wikipedia page access statistics to find out. Our weapon of choice will be R and the recently...

Read more »

Search R-bloggers


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)