Re: [R] R table as integrable object for large Latex Documents - avoiding SWeave

2012-08-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 13/08/12 18:46, clangkamp wrote:
 Hi, I am wondering whether some of you have a pointer to an alternative. I am 
 currently writing
 my thesis in Latex (several documents), well grown over time, I am sure many 
 of you are
 familiar with the situation. Likewise I am doing the quantitative analysis 
 with R, and again a
 lot of lines of more or less wellwritten code. The outputs are graphs (which 
 one can
 wonderfully integrate as PNG objects into Latex) and tables, where I am not 
 sure. With Word /
 Powerpoint I always go via the CSV path, but CSV integration with the Latex 
 Packages is really
 cumbersome.
 
 My main point is that there are some packages (xtable, pgfplotstable, ...) 
 which sort of do
 integration, but they require a lot of command definitions, requiring a lot 
 of time to get
 right and ultimately also providing much of a source for errors. Thus my 
 question is whether
 you know of any alternative how to create pictures or CSV style objects that 
 *easily* integrate
 into LaTeX, keep their format etc.

You effectively have two options:

1) process the table in R to create a LaTeX file which you can insert into your 
LaTeX document
(see response from Ista), or

2) you can export your data as a csv file, and then process it in LaTeX. There 
are several
packages, which can read csv files and format it as a table (e.g.
http://mancoosi.org/~abate/latex-tables-csv-files, or
http://texblog.org/2012/05/30/generate-latex-tables-from-csv-files-excel/) .

Depending on how complicated your table is, if it is a longtable, or landscape, 
the one option
might work better then the other, and it depends on your preferences.

Some editors actually offer the option to import a csv file and convert it to 
LaTeX, gnumeric (and
possibly LibreOffice) can export to LaTeX, but I would possibly use option 2) 
or 1)

Cheers,

Rainer

 
 Thanks Christian
 
 
 
 - Christian Langkamp christian.langkamp-at-gmxpro.de
 
 -- View this message in context:
 http://r.789695.n4.nabble.com/R-table-as-integrable-object-for-large-Latex-Documents-avoiding-SWeave-tp4640183.html

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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAqGv4ACgkQoYgNqgF2egpaEACfQtFoM+DWOtEuNv8pS8cE85iy
1pYAnix3ORL5dZBHVnnrR+3IbZOS5e1G
=vuH6
-END PGP SIGNATURE-

__
R-help@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] R table as integrable object for large Latex Documents - avoiding SWeave

2012-08-13 Thread clangkamp
Hi, I am wondering whether some of you have a pointer to an alternative.
I am currently writing my thesis in Latex (several documents), well grown
over time, I am sure many of you are familiar with the situation. Likewise I
am doing the quantitative analysis with R, and again a lot of lines of more
or less wellwritten code. The outputs are graphs (which one can wonderfully
integrate as PNG objects into Latex) and tables, where I am not sure. With
Word / Powerpoint I always go via the CSV path, but CSV integration with the
Latex Packages is really cumbersome.

My main point is that there are some packages (xtable, pgfplotstable, ...)
which sort of do integration, but they require a lot of command definitions,
requiring a lot of time to get right and ultimately also providing much of a
source for errors. Thus my question is whether you know of any alternative
how to create pictures or CSV style objects that *easily* integrate into
LaTeX, keep their format etc.

Thanks
Christian



-
Christian Langkamp
christian.langkamp-at-gmxpro.de

--
View this message in context: 
http://r.789695.n4.nabble.com/R-table-as-integrable-object-for-large-Latex-Documents-avoiding-SWeave-tp4640183.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] R table as integrable object for large Latex Documents - avoiding SWeave

2012-08-13 Thread Ista Zahn
There is grid.table in the gridExtra package
(http://code.google.com/p/gridextra/wiki/tableGrob), but for thesis
tables I think you're better off trying to solve the difficulties
you've been having with xtable. I can also recommend the latex
function in the Hmisc package, which makes it easier to do things like
specify row and column groups.

Best,
Ista

On Mon, Aug 13, 2012 at 12:46 PM, clangkamp
christian.langk...@gmxpro.de wrote:
 Hi, I am wondering whether some of you have a pointer to an alternative.
 I am currently writing my thesis in Latex (several documents), well grown
 over time, I am sure many of you are familiar with the situation. Likewise I
 am doing the quantitative analysis with R, and again a lot of lines of more
 or less wellwritten code. The outputs are graphs (which one can wonderfully
 integrate as PNG objects into Latex) and tables, where I am not sure. With
 Word / Powerpoint I always go via the CSV path, but CSV integration with the
 Latex Packages is really cumbersome.

 My main point is that there are some packages (xtable, pgfplotstable, ...)
 which sort of do integration, but they require a lot of command definitions,
 requiring a lot of time to get right and ultimately also providing much of a
 source for errors. Thus my question is whether you know of any alternative
 how to create pictures or CSV style objects that *easily* integrate into
 LaTeX, keep their format etc.

 Thanks
 Christian



 -
 Christian Langkamp
 christian.langkamp-at-gmxpro.de

 --
 View this message in context: 
 http://r.789695.n4.nabble.com/R-table-as-integrable-object-for-large-Latex-Documents-avoiding-SWeave-tp4640183.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@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@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.


Re: [R] R table as integrable object for large Latex Documents - avoiding SWeave

2012-08-13 Thread Duncan Mackay

Hi Christian

I also think that latex is the way to go having to regularly produce 
pdfs that are around  50-100+ pages.


Why use powerpoint when you have Beamer or other latex packages to 
create a presentation.
You would have done most of the work in the thesis so use what you 
have already done.


Presentations can take time in powerpoint and there is 
forward/backward compatibility issues  with Microsoft.

Everybody has Adobe/Acrobat not all have MS

The key to productivity is to have templates for graphs figures and 
tables in your text editor and amend to suit.
For many column tables I use R to produce the column headings as the 
centred column headings are a different format to the body

Just a matter of clicking on the template and supplying the column headings.

HTH

Duncan

Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mac...@northnet.com.au


At 04:44 14/08/2012, you wrote:

There is grid.table in the gridExtra package
(http://code.google.com/p/gridextra/wiki/tableGrob), but for thesis
tables I think you're better off trying to solve the difficulties
you've been having with xtable. I can also recommend the latex
function in the Hmisc package, which makes it easier to do things like
specify row and column groups.

Best,
Ista

On Mon, Aug 13, 2012 at 12:46 PM, clangkamp
christian.langk...@gmxpro.de wrote:
 Hi, I am wondering whether some of you have a pointer to an alternative.
 I am currently writing my thesis in Latex (several documents), well grown
 over time, I am sure many of you are familiar with the situation. 
Likewise I

 am doing the quantitative analysis with R, and again a lot of lines of more
 or less wellwritten code. The outputs are graphs (which one can wonderfully
 integrate as PNG objects into Latex) and tables, where I am not sure. With
 Word / Powerpoint I always go via the CSV path, but CSV 
integration with the

 Latex Packages is really cumbersome.

 My main point is that there are some packages (xtable, pgfplotstable, ...)
 which sort of do integration, but they require a lot of command 
definitions,
 requiring a lot of time to get right and ultimately also 
providing much of a

 source for errors. Thus my question is whether you know of any alternative
 how to create pictures or CSV style objects that *easily* integrate into
 LaTeX, keep their format etc.

 Thanks
 Christian



 -
 Christian Langkamp
 christian.langkamp-at-gmxpro.de

 --
 View this message in context: 
http://r.789695.n4.nabble.com/R-table-as-integrable-object-for-large-Latex-Documents-avoiding-SWeave-tp4640183.html

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

 __
 R-help@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@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@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] R Table

2012-01-18 Thread Ajay Askoolum
Given a table with colnames and rownames, print(mytable) displays the table 
nicely formatted.

How can I capture all of what is displayed as a character matrix?
Thanks.
[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] R Table

2012-01-18 Thread R. Michael Weylandt
Capture in what file format / device?

If you want a plain text log, sink() or capture.output() probably will
do it. MASS::write.table() might also help.

I believe library(Hmisc) has some functions for converting to LaTeX
tables as well, but I haven't used those myself.

Michael

On Wed, Jan 18, 2012 at 2:41 PM, Ajay Askoolum aa2e...@yahoo.co.uk wrote:
 Given a table with colnames and rownames, print(mytable) displays the table 
 nicely formatted.

 How can I capture all of what is displayed as a character matrix?
 Thanks.
        [[alternative HTML version deleted]]

 __
 R-help@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@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.


Re: [R] R Table

2012-01-18 Thread R. Michael Weylandt
My mistake: MASS::write.matrix() or utils::write.table()

Michael

On Wed, Jan 18, 2012 at 2:44 PM, R. Michael Weylandt
michael.weyla...@gmail.com wrote:
 Capture in what file format / device?

 If you want a plain text log, sink() or capture.output() probably will
 do it. MASS::write.table() might also help.

 I believe library(Hmisc) has some functions for converting to LaTeX
 tables as well, but I haven't used those myself.

 Michael

 On Wed, Jan 18, 2012 at 2:41 PM, Ajay Askoolum aa2e...@yahoo.co.uk wrote:
 Given a table with colnames and rownames, print(mytable) displays the table 
 nicely formatted.

 How can I capture all of what is displayed as a character matrix?
 Thanks.
        [[alternative HTML version deleted]]

 __
 R-help@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@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.


Re: [R] R Table

2012-01-18 Thread Ajay Askoolum
Thank you. I used capture.output(); this is fine.




 From: R. Michael Weylandt michael.weyla...@gmail.com

Cc: R General Forum r-help@r-project.org 
Sent: Wednesday, 18 January 2012, 19:44
Subject: Re: [R] R Table

Capture in what file format / device?

If you want a plain text log, sink() or capture.output() probably will
do it. MASS::write.table() might also help.

I believe library(Hmisc) has some functions for converting to LaTeX
tables as well, but I haven't used those myself.

Michael


 Given a table with colnames and rownames, print(mytable) displays the table 
 nicely formatted.

 How can I capture all of what is displayed as a character matrix?
 Thanks.
        [[alternative HTML version deleted]]

 __
 R-help@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.
[[alternative HTML version deleted]]

__
R-help@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.