Function to return mode
getModeForVector(v)
a vector
mode
# NOT RUN { getModeForVector(c(1,1,2,3)) # }
Run the code above in your browser using DataLab