Message-ID: <f55e7cf50911240727i17f6c15ek2d34901c55296d36@mail.gmail.com>
Date: 2009-11-24T15:27:43Z
From: Ista Zahn
Subject: From R to LaTeX to pdf?
In-Reply-To: <4B0BF63C.5070001@psych.uib.no>
2009/11/24 Tom Backer Johnsen <backer at psych.uib.no>:
> As a general observation, few, if any, statistical packages, generate tables
> in the format what you might think you need or want. ?R is not an exception.
I actually find that Hmisc::latex generates tables pretty much exactly
as I want them. For me, this is one of the greatest strengths of R
(well, R + LaTeX = Sweave actually).
-Ista
> ?Then it is better to transfer the table to a spreadsheet, shift things
> around, add headers, etc.. ?The R2HTML library is useful for that operation.
> ?When things are the way you want it, transfer it to LaTex via a text file,
> e.g. .csv.
>
> Tom
>
> Joel F?rstenberg-H?gg wrote:
>>
>> Hi all,
>>
>>
>> Anyone experienced in the LaTeX format?
>>
>>
>> I'm trying to use the xtable package to create nice anova tables, but how
>> do I do to produce a pdf from the resulting LaTeX table? I've tried WinShell
>> and MiKTeX, but I couldn't get any of them working...
>>
>>
>> Here's an example of the output in R:
>>
>>
>> % latex table generated in R 2.9.2 by xtable 1.5-6 package
>> % Tue Nov 24 14:17:32 2009
>> \begin{tabular}{lrrrrr}
>> ?\hline
>> ?& Df & Sum Sq & Mean Sq & F value & Pr($>$F) \\ ?\hline
>> cat & 2 & 40.50 & 20.25 & 6.66 & 0.0019 \\ ?Residuals & 107 & 325.13 &
>> 3.04 & ?& ?\\ ? \hline
>> \end{tabular}
>>
>>
>> Best regards,
>>
>>
>> Joel
>>
>> ?_________________________________________________________________
>> Lagra alla dina foton p? Skydrive. Det ?r enkelt och s?kert!
>> http://www.skydrive.live.com
>> ? ? ? ?[[alternative HTML version deleted]]
>>
>> ?------------------------------------------------------------------------
>>
>> ______________________________________________
>> 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.
>>
>
> ______________________________________________
> 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.
>
--
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org