From: jcarmichael <jcarmichael314_at_gmail.com>

Date: Mon, 28 Jul 2008 10:08:32 -0700 (PDT)

*>>
*

>> Hello everyone. I am new to R, so please bear with me. I am trying to

*>> find
*

*>> an easy way to export descriptive statistics and other information about
*

*>> my
*

*>> data frame to a LaTeX format.
*

*>>
*

*>> I have found the describe function in PrettyR to be very helpful in
*

*>> producing results in the exact format I'm looking for. However, the
*

*>> value
*

*>> of the describe function is a LIST (rather than a data frame) which I am
*

*>> then unable to convert to LaTeX using the xtable package or the latex
*

*>> function of Hmisc. When I try to convert the list to a data frame, I get
*

*>> an
*

*>> error that says "arguments imply differing number of rows."
*

*>>
*

*>> If that didn't make any sense...ultimately, here is what I'm trying (and
*

*>> failing) to produce as a LaTeX document...
*

*>>
*

*>> MALES FEMALES
*

*>> Q10 Med Q90 Q10 Med Q90
*

*>> AGE xx xx xx xx xx
*

*>> xx
*

*>> BMI xx xx xx xx xx
*

*>> xx
*

*>> etc. xx xx xx xx xx
*

*>> xx
*

*>>
*

*>> Any help or guidance would be appreciated! Thank you in advanced!
*

*>>
*

*>> J.
*

*>> --
*

*>> View this message in context:
*

*>> http://www.nabble.com/Using-PrettyR-to-produce-LaTeX-output-tp18618195p18618195.html
*

*>> Sent from the R help mailing list archive at Nabble.com.
*

*>>
*

*>> ______________________________________________
*

*>> R-help_at_r-project.org mailing list
*

*>> https://stat.ethz.ch/mailman/listinfo/r-help
*

*>> PLEASE do read the posting guide
*

*>> http://www.R-project.org/posting-guide.html
*

*>> and provide commented, minimal, self-contained, reproducible code.
*

*>>
*

Date: Mon, 28 Jul 2008 10:08:32 -0700 (PDT)

This is EXACTLY what I needed. I suppose the only issue was that I needed to isolate the numeric output of PrettyR::describe. Thanks very much!

Gabor Grothendieck wrote:

> > Using the built in BOD data frame: > > library(prettyR) > str(describe(BOD)) # note Numeric component > > BOD.describe.df <- as.data.frame(describe(BOD)$Numeric) > > library(xtable) > xtable(BOD.describe.df) > > On Wed, Jul 23, 2008 at 3:46 PM, jcarmichael <whattheheli_at_yahoo.com> > wrote:

>> Hello everyone. I am new to R, so please bear with me. I am trying to

> > ______________________________________________ > R-help_at_r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >

-- View this message in context: http://www.nabble.com/Using-PrettyR-to-produce-LaTeX-output-tp18618195p18695046.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.Received on Mon 28 Jul 2008 - 18:16:12 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 Mon 28 Jul 2008 - 18:32:43 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*