[R] summary of summaries

From: Bernd Jagla <baj2107_at_columbia.edu>
Date: Mon, 17 Mar 2008 14:06:56 -0400


Hi,  

I have a few hundreds files with numerical information of different length but with the same column structure. I use the following code to get summary statistics  

fplist <- list.files(pattern=".*analysis")

for (fp in fplist){

            x2 <- read.delim(fp)

            summary(x2)

}  

Summary gives something like:

summary (x2)

       V1              V2            V3              V4                  V5
V6                V7               V8               V9        

 Min. :11.00 4:9 : 11 Min. : 1.00 Min. : 19128823 Min. : 19812573 Min. : 0.00 Min. : 1.00 Min. :0.1538 Min. : 1.000

 1st Qu.:13.00 2:9 : 9 1st Qu.: 4.50 1st Qu.: 48952449 1st Qu.: 49085044 1st Qu.: 14.33 1st Qu.: 3.00 1st Qu.:0.7223 1st Qu.: 5.500

 Median :20.00 3:10 : 9 Median :10.00 Median : 63129783 Median : 63218749 Median : 61.54 Median : 10.00 Median :1.0069 Median : 8.000

 Mean :25.68 4:8 : 9 Mean :12.20 Mean : 72876334 Mean : 73051728 Mean : 175.39 Mean : 32.64 Mean :1.0522 Mean : 9.644

 3rd Qu.:34.00 3:8 : 7 3rd Qu.:23.00 3rd Qu.: 96700016 3rd Qu.: 96713037 3rd Qu.: 264.88 3rd Qu.: 40.00 3rd Qu.:1.2586 3rd Qu.:12.000

 Max. :72.00 4:13 : 6 Max. :23.00 Max. :203343850 Max.
:204024777 Max. :1440.30 Max. :289.00 Max. :2.7690 Max.
:27.000

                 (Other):300


      V10       

 Min. : 6.00

 1st Qu.:10.00

 Median :14.00

 Mean :18.03

 3rd Qu.:24.00

 Max. :52.00  

Now I want to get a summary statistics of the summaries. Obviously I would need to store the summary results inarrays. But I was wondering if that makes sense and how an expert would solve this? I don't want to create an array for each column if possible.  

Thanks for the kind support,  

Bernd

        [[alternative HTML version deleted]]



R-help_at_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. Received on Mon 17 Mar 2008 - 18:13:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 17 Mar 2008 - 20:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive