I have already done most of my final paper using normal LaTeX and inserted a table using pgfsplotstable. However, I find it particularly difficult to edit/ style the table using this packages syntax.

So question is, can I genereate the table from Sweave and insert into my Tex file somehow, not as an image either.


A simple example:


See table \ref{test}
a <- c(1.2,2.33,3.556)
b <- c(4.001,5.23,6.8)
c <- c(7,8,9.123) 
xtable(abc, caption="A table example", label="test")

Compile this with

R CMD Sweave test.Rnw 
pdflatex test.tex
pdflatex test.tex    

The result must be:


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.