powered by
Mode(x, na.rm = FALSE)
mean
median
data(d.pizza) Mode(d.pizza$driver) # use sapply for evaluating data.frames (resp. apply for matrices) sapply(d.pizza[,c("driver","temperature","date")], Mode, na.rm=TRUE)
Run the code above in your browser using DataLab