ave
February 8, 2009 at 11:28 am | In GNU-R | 2 CommentsSee this post at its new location
I discovered a new, very useful, R function yesterday: ave.
This is what it does: “Subsets of ‘x[]‘ are averaged, where each subset consist of those observations with the same factor levels.”
But interestingly, you can use any function other than average. The output of that function is set against each observation.
I wanted to, for example, stick sub-group ranks to each observation. I can think of several situations where this would be of great value!
V.
2 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.
Just dropping by.Btw, you website have great content!
______________________________
Start Getting Paychecks For Easy Work That Fits Your Schedule, No Experience Required.
Comment by Kris — March 3, 2009 #
Thanks.
Comment by Vikas Rawal — March 3, 2009 #