Skip to content
Back to formatted view

Raw Message

Message-ID: <4581E8F0.5010401@bowdoin.edu>
Date: 2006-12-15T00:14:40Z
From: Steve
Subject: Nicely formatted tables

> apply(iris[, 1:4], 2, summary)

Nice solution!
However,  latex(apply(iris[, 1:4], 2, summary))
has the odd effect that the upper left corner  is "apply".
This is the "title", so to produce a file "abc.tex" and have an empty 
upper left corner you need

latex(apply(iris[, 1:4], 2, summary),title="",file="abc.tex")

And, since I wanted a more compact table, the following works just as 
expected:

latex(format(apply(iris[, 1:4], 2, 
summary),digits=2),title="",file="abc.tex")

thank you!

Steve