Re: [R] Table of basic descriptive statistics like SPSS

From: Jim Lemon <>
Date: Tue, 18 Mar 2008 19:37:50 +1100 wrote:
> Dear list readers,
> I want to:
> 1. Get a table of basic descriptive statistics for my variables
> with the variable names one below the other
> like SPSS descriptive statistics:
> Varname N Min Max Mean SD
> xxxx x x x x x
> xxx x x x x x
> ....
This looks very much like the output of the "describe" function in the prettyR package. You can specify which summary stats you want (even roll your own).

> 2. Delete some variables from a data frame or exclude variables
> from beeing analyzed.
> 3. Create a text file / redirect the terminal output to a
> file (it is supposed to be easy, but I could not find a solution)?

maybe you would enjoy "htmlize" or "R2html" in the prettyR package.

> 4. Create a latex/dvi file
You do this with Sweave, I think.
> 5. Create a PDF file (can that be done within R?)
For plots, the pdf device.
Jim mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 18 Mar 2008 - 08:33:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 18 Mar 2008 - 09:30:22 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive