# NOT RUN {
#central value of an integer variable:
centralValue(c(rep(1, 25), rep(2, 10), rep(3, 20)))
#central value of a character variable:
centralValue(as.character(c(rep(1, 20), rep(2, 10), rep(3, 20))))
# }
Run the code above in your browser using DataLab