say i have 5 summary for 5 sets of data. how can i get those number out or combine the summary in to 1 rather than 5
V1 V2 V3 V4
Min. : 670.2 Min. : 682.3 Min. : 690.7 Min. : 637.6
1st Qu.: 739.9 1st Qu.: 737.2 1st Qu.: 707.7 1st Qu.: 690.7
Median : 838.6 Median : 798.6 Median : 748.3 Median : 748.3
Mean : 886.7 Mean : 871.0 Mean : 869.6 Mean : 865.4
3rd Qu.:1076.8 3rd Qu.:1027.6 3rd Qu.:1070.0 3rd Qu.: 960.8
Max. :1107.8 Max. :1109.3 Max. :1131.3 Max. :1289.6
V5
Min. : 637.6
1st Qu.: 690.7
Median : 748.3
Mean : 924.3
3rd Qu.: 960.8
Max. :1584.3
how can i have 1 table looks like
v1 v2 v3 v4 v5
Min. :
1st Qu.:
Median :
Mean :
3rd Qu.:
Max. :
or how to save those number as vector so i can use matrix to generate a table
It looks like your data is in a data frame or matrix. If so, you can do the following:
You can convert the summary output into a matrix and then bind them:
Alternatively, you can combine them into a list and use an
apply
function (orplyr
):