Skip to content

How to get the descriptive statistic of the whole dataframe?

4 messages · Lao Meng, Daniel Malter, PIKAL Petr +1 more

#
look into the *apply series of functions. In your case

apply(name.of.your.data.frame,2,min)

or 

apply(name.of.your.data.frame,2,max)

will do. You can also put any summary function to your liking instead of
min/max.

Best,
Daniel
Lao Meng wrote:
--
View this message in context: http://r.789695.n4.nabble.com/How-to-get-the-descriptive-statistic-of-the-whole-dataframe-tp3751857p3752007.html
Sent from the R help mailing list archive at Nabble.com.
#
Hi
And summary has its own data frame method so simply

summary(name.of.your.data.frame)

There is also fivenum function and more elaborated describe in Hmisc I 
believe :-)

Regards
Petr
http://www.R-project.org/posting-guide.html
#
At 10:31 AM +0200 8/18/11, Petr PIKAL wrote:
There are at least 3 different describe functions, all useful, but 
with somewhat different output

describe (psych)
describe (Hmisc)
describe (prettyR)

One of these will probably do just what you want.

Bill