8
Summary: control output format for summary(dataFrame) calls.
Given data frame dataFrame, summary(dataFrame) creates an output which is easy to read only when the number of columns in dataFrame is small.
Question:
How to produce an output that contains 1 fact at a time?
For example:
dataFrame <- data.frame(x=rnorm(100), y=rnorm(100), z=rnorm(100));
summary(dataFrame);
gives:
x y z
Min. :-2.13427 Min. :-2.12077 Min. :-2.4453
1st Qu.:-0.53324 1st Qu.:-0.78915 1st Qu.:-0.4100
Median : 0.05675 Median :-0.22321 Median : 0.1356
Mean : 0.09102 Mean :-0.04939 Mean : 0.1306
3rd Qu.: 0.69685 3rd Qu.: 0.58358 3rd Qu.: 0.7847
Max. : 2.48204 Max. : 2.65971 Max. : 2.0504
and the desired output would be:
x
Min. :-2.13427
1st Qu.:-0.53324
Median : 0.05675
Mean : 0.09102
3rd Qu.: 0.69685
Max. : 2.48204
y
Min. :-2.13427
1st Qu.:-0.53324
Median : 0.05675
Mean : 0.09102
3rd Qu.: 0.69685
Max. : 2.48204
z
Min. :-2.13427
1st Qu.:-0.53324
Median : 0.05675
Mean : 0.09102
3rd Qu.: 0.69685
Max. : 2.48204