In R, mean() and median() are standard functions which do what you\'d expect. mode() tells you the internal storage mode of the objec
mean()
median()
mode()
This works pretty fine
> a<-c(1,1,2,2,3,3,4,4,5) > names(table(a))[table(a)==max(table(a))]