Butte
Monday, 26 August 2013
Set column name ddply
Set column name ddply
How to set the column name of the summarized data in
library(plyr)
ddply(data,.(col1,col2),nrow)
like in
ddply(data,.(col1,col2),function(x) data.frame(number=nrow(x)))
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment