Skip to content
Prev 324350 / 398503 Next

make stat.desc output an object

Inline:
On Tue, May 28, 2013 at 9:22 PM, Berend Hasselman <bhh at xs4all.nl> wrote:
Unless I misunderstand, I don't think so. This just captures printed
output as a character vector. To capture the "result" of a call as an
object, just assign it:

result <- summary(mydata).

However, and again if I have not misunderstood, I believe the query
indicates the OP has not done his/her homework by reading a basic R
tutorial, like An Introduction to R and does not understand that most
R functions already return summary objects that are automatically
printed by the relevant print method.

-- Bert