R tips

This tag is associated with 1 post

‘Group by’ or count unique values in R

I like this more
aggregate(data$age, by=list(data$group), FUN=mean)

Here’s the link for more http://stats.stackexchange.com/questions/8225/how-to-summarize-data-by-group-in-r

Count unique values in R from http://stackoverflow.com/questions/4215154/count-unique-values-in-r:

dummyData = rep(c(1,2, 2, 2), 25)

> table(dummyData)
 1  2 
25 75

#or another presentation of the same data
> as.data.frame(table(dummyData))
  dummyData Freq
1     1   25
2     2   75

Exploring and venting about quantitative issues

The Stone and the Shell

Using large digital libraries to advance literary history

Hi. I'm Hilary Mason.

Zoom out, zoom in, zoom out.

Introduction to Data Science, Columbia University

Blog to document and reflect on Columbia Data Science Class

statMethods blog

A Quick-R Companion

the Tarzan

[R] + applied economics.

4D Pie Charts

Scientific computing, data viz and general geekery, with examples in R and MATLAB.