r - Hmisc describe short version -


is there way show first 2 lines of output describe command in hmisc?

for data safety reasons can show n, missing, unique , mean in output , possibly histogram.

this means have hide output lowest, highest frequencies , percentiles.

is possible? if not i'll have calculate values myself.

library(hmisc)  res <- describe(rnorm(400))  #look @ structure. str(res) #it's list! can change objects in it.  res$counts <- res$counts[1:4] res$values <- null  print(res) #rnorm(400)  #      n missing  unique    mean  #    400       0     400 0.05392  

Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -