Hi R-helpers,

sumx <- summary(mtcars[,c("mpg","disp")])
> sumx
      mpg             disp
 Min.   :10.40   Min.   : 71.1
 1st Qu.:15.43   1st Qu.:120.8
 Median :19.20   Median :196.3
 Mean   :20.09   Mean   :230.7
 3rd Qu.:22.80   3rd Qu.:326.0
 Max.   :33.90   Max.   :472.0

I want a dataframe as

             mpg    disp
Min.      10.40   71.1
1st Qu. 15.43  120.8
Median 19.20  196.3
Mean    20.09  230.7
3rd Qu. 22.80  326.0
Max.      33.90  472.0

How can it be done in R?
-- 
Regards
Abhinaba Roy

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to