Imagine I have a data frame with 2 columns
Id Value
12 13
32 3
6022 11
9142 231
12 23
119 312
...
and I want to get the mean value for each “Id”. Do you know of any fast way of doing this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Beyond aggregate, other options include by and ddply (in plyr).