Monthly Archives: July 2009

Return

July 6, 2009
By

I'm back from vacation, so I'll post something substantive later today.

Read more »

Return

July 6, 2009
By

I'm back from vacation, so I'll post something substantive later today.

Read more »

Using R to Create Misc. Patterns [smocking]

July 4, 2009
By
Using R to Create Misc. Patterns [smocking]

Pattern Chunk   Premise My wife asked me to come up with some graph paper for creating smocking patterns. After a couple of minutes playing around with R-base graphics functions, it occurred to me that several functions in the sp package...

Read more »

Summarizing Grouped Data in R

July 3, 2009
By

A colleague of mine recently asked about computing basic summary statistics from grouped data in R. These are a couple examples that I suggested. Additional documentation for the plyr package can be found here. read more

Read more »

Remove files with a specific pattern in R

July 3, 2009
By
Remove files with a specific pattern in R

A quick basic tip which can come in handy whether you need to rapidly remove files from a directory:junk <- dir(path="your_path", pattern="your_pattern") # ?dirfile.remove(junk) # ?file.removeClearly, for advanced needs, you can use system() and al...

Read more »

OECD Statistics

July 2, 2009
By
OECD Statistics

I am a sucker for good quality data. I wrote about data.gov, the US Government data site before, and now I find OECD Statistics which has some 300 data sets, many of which seems to be readily accessible (though some may require subscription)

Read more »

OECD Statistics

July 2, 2009
By
OECD Statistics

I am a sucker for good quality data. I wrote about data.gov, the US Government data site before, and now I find OECD Statistics which has some 300 data sets, many of which seems to be readily accessible (though some may require subscription)

Read more »

Example 7.4: A prettier jittered scatterplot

July 2, 2009
By
Example 7.4: A prettier jittered scatterplot

The plot in section 7.3 has some problems. At the very least, the jittered values ought to be between 0 and 1, so the smoothed lines fit better with them. Once again we use the data generated in section 7.2 as an example. For both SAS and R, we use conditioning (section 1.11.2) to make the jitter happen...

Read more »

R String processing

July 2, 2009
By
R String processing

Here's a little vignette of data munging using the regular expression facilities of R (aka the R-project for statistical computing). Let's say I have a vector of strings that looks like this:> coords "chromosome+:157470-158370" "chromosome+:1583...

Read more »

Getting help with R

July 2, 2009
By

There's no doubt that by now you've noticed that we're big fans of R around here. It's completely free, has superior graphing capabilities, and with all the extension packages available there isn't much it can't do. One of the problems with R especially to new users is that it isn't obvious how to find help when you...

Read more »