Monthly Archives: April 2012

Basics of Working With Data in R

April 5, 2012
By

Read more »

Where hiding if you don’t want to get wet ?

April 5, 2012
By
Where hiding if you don’t want to get wet ?

Following the previous post, two additional remarks. Following a comment by @cosi, I have investigated quickly a binomial fit to the distribution of the number of people not getting wet, with a fixed number of players on the field. It looks like it...

Read more »

Melt

April 5, 2012
By

There are many situations where data is presented in a format that is not ready to dive straight to exploratory data analysis or to use a desired statistical method. The reshape2 package for R provides useful functionality to avoid having to hack data around in a spreadsheet prior to import into R. The melt function

Read more »

A Little Web Scraping Exercise with XML-Package

April 5, 2012
By

Some months ago I posted an example of how to get the links of the contributing blogs on the R-Blogger site. I used readLines() and did some string processing using regular expressions.With package XML this can be drastically shortened - see this:# get...

Read more »

R Structure Explained

April 4, 2012
By

This post by Suraj Gupta explains it all. This is the first time I have seen a  concise and accessible explanation of the R environment structure and why it matters.   Addendum: This one by Digithead is also pretty good

Read more »

R Structure Explained

April 4, 2012
By

This post by Suraj Gupta explains it all. This is the firs time I have seen a  concise and accessible explanation of the R environment structure and why it matters.   Addendum: This one by Digithead is also pretty good

Read more »

R, I Love You

April 4, 2012
By

It is easier to critique than it is to create. I write this post with much gratitude for R, the R community and particularly R-Core who are paid $0 to bring us R. I’d like to offer an idea and I’m wondering if people are interested in ral...

Read more »

Data Science Undefined

April 4, 2012
By

One of the favorite bar room discussions of statisticians, machine learners, and computer scientists is – what is data science? (And I don’t care whether it happens in a bar or not, it’s a “bar room” discussion by virtue of...

Read more »

How I Learned to Stop Worrying and Love Twitter

April 4, 2012
By

In honor of Twitter making the decision to come to Detroit, here’s a special post on how I became a Twitter user. … At 3:30pm my wife called me. There was a shooting where my brother-in-law works at UPMC Western...

Read more »

How R finds objects (or, what that :: operator is for)

April 4, 2012
By
How R finds objects (or, what that :: operator is for)

Most of the time when we're programming in R, we don't think about how R gets from an object name (say, "stdev") to what it represents (a function to calculate standard deviation, perhaps). If you're writing functions, you've probably know about R's lexical scoping. And if you use a lot of packages, you probably know about the search list,...

Read more »