sample.df<-data.frame(sex=sample(c("MALE","FEMALE"),100,TRUE),
income=(rnorm(100)+2.5)*20000,suburb=factor(sample(1:4,100,TRUE)))
# include the maximum values
describe(sample.df,num.desc=c("mean","median","max","var","sd","valid.n"))
Run the code above in your browser using DataLab