4
I have the following database:
id x
1 2
1 3
2 3
3 3
3 3
3 3
I wanted to create a new database without repeating the field value id
, to solve this I can average the field values x
that belongs to the same id
.
My question is: How can I do this in R
?
Oops, we answered at the same time exactly the same thing! I will change my answer.
– Carlos Cinelli
Yeah, after six hours we answered the same thing 30 seconds apart, hahaha.
– Molx