Tag Archives: R

A little spark for presenting your data

For some reason, I’ve been obsessing over the presentation of data. (Either it is that I’ve just read all of Edward Tufte‘s books, or I’m just being a nerd. But I guess that those two things aren’t exactly exclusive….) Considering my obsession, you could imagine how I felt when one of my students stood up [...]

Posted in (all categories), Geekiness, OpenOffice.org, Useless Knowledge | Also tagged , , | 2 Comments

It’s a choropleth party with R, and everyone’s invited

Map party time. For some reason this happens every once in a while with me. A few years ago, I got to develop a website filled with choropleth maps galore. It was a pretty tedious process. Excel sheets. Photoshop. No good access to free Indian shapefiles. I was even thinking of making my own SVG [...]

Posted in (all categories), Geekiness, India, Useless Knowledge | Also tagged , | 3 Comments

Quickly reshaping data from “wide” to “long” formats in R

A lot of the times, students at the Academy enter data in a “wide” format (since it is a very natural way to enter data in a spreadsheet). Let’s say, for example, that they were collecting data for a household, and for each person, they were collecting information on three variables. Assume also that they [...]

Posted in (all categories), Geekiness, Useless Knowledge | Also tagged , , | 4 Comments

Sampling with replacement in R

In my last post about sampling (Simple sampling with R) we were doing simple sampling without replacement–that is, each item could only be selected once. However, there are times when you want to simulate sampling with replacement. For example, if you wanted to simulate sampling the results of rolling a dice 50 times, your outcomes [...]

Posted in (all categories), Geekiness, Useless Knowledge | Also tagged , , | 1 Comment

Simple sampling with R

I mentioned in an earlier post (Am I inconsistent?) that I got interested in R because Amy had asked me to help her with some sampling at one point. Since that was my starting point, I thought I would share some of my experiments with you. In this post: Simple random sampling Simple random sampling [...]

Posted in Geekiness, Useless Knowledge | Also tagged , , | 1 Comment

Am I inconsistent?

I won’t pretend that I don’t have any illegal software installed on my computers, but here are a couple of scenarios that have occurred at work recently. A student came to me with his new laptop and asked me “Can I have a copy of Office 2007?” I thought for a minute and said, “Um, [...]

Posted in (all categories), (non) fiction, Geekiness | Also tagged , , , , | 6 Comments