I\'m writting my first program in R and as a newbie I\'m having some troubles, hope you can help me.
I\'ve got a data frame like this:
> v1<-c
This is fairly straightforward with the plyr library.
plyr
library("plyr") ddply(datos, .(Position), colwise(sum))
If you have additional non-numeric columns that shouldn't be averaged, you can use
ddply(datos, .(Position), numcolwise(sum))