I am newest in using the R Language. I want to get the item with the maximum occurences in the vector.
So, if i have a vector as bellow: vec<-as.vector(c(1,2,3,1,4,1,2))
.
I want get 1.
Thanks.
I am newest in using the R Language. I want to get the item with the maximum occurences in the vector.
So, if i have a vector as bellow: vec<-as.vector(c(1,2,3,1,4,1,2))
.
I want get 1.
Thanks.