[R] Nicely formatted tables

Marc Schwartz marc_schwartz at comcast.net
Thu Dec 14 23:18:17 CET 2006


On Thu, 2006-12-14 at 17:09 -0500, Kuhn, Max wrote:
> How about:
> 
> > apply(iris[, 1:4], 2, summary)
>         Sepal.Length Sepal.Width Petal.Length Petal.Width
> Min.           4.300       2.000        1.000       0.100
> 1st Qu.        5.100       2.800        1.600       0.300
> Median         5.800       3.000        4.350       1.300
> Mean           5.843       3.057        3.758       1.199
> 3rd Qu.        6.400       3.300        5.100       1.800
> Max.           7.900       4.400        6.900       2.500
> 
> Max 

<snip>

Yep, that will do it too Max.  :-)

Thanks for pointing it out.

Clearly, in need of more oxygen to the old cranium...

Regards,

Marc



More information about the R-help mailing list