* R code, LaTex export of tables
@ 2012-12-21 16:08 Neuwirth Erich
2012-12-21 19:14 ` Nick Dokos
0 siblings, 1 reply; 2+ messages in thread
From: Neuwirth Erich @ 2012-12-21 16:08 UTC (permalink / raw)
To: Org Mode
The following piece of code
produced nicely formatted table
some time ago when exported through LaTex.
It comes from http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html
#+BEGIN_SRC R :results output org :exports both
library(ascii)
a <- runif(100)
c <- "Quantiles of 100 random numbers"
b <- ascii(quantile(a),header=TRUE,include.colnames=TRUE)
print(b,type="org")
rm(a,b,c)
#+END_SRC
When I tried again now, it renders the table as org source code for tables
|0% |25% |50% |75% |100%|
|------+------+------+------+------|
| 0.01 | 0.26 | 0.51 | 0.76 | 1.00 |
And does not format it nicely.
How can I make this work "the old way"?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: R code, LaTex export of tables
2012-12-21 16:08 R code, LaTex export of tables Neuwirth Erich
@ 2012-12-21 19:14 ` Nick Dokos
0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2012-12-21 19:14 UTC (permalink / raw)
To: Neuwirth Erich; +Cc: Org Mode
Neuwirth Erich <erich.neuwirth@univie.ac.at> wrote:
> The following piece of code
> produced nicely formatted table
> some time ago when exported through LaTex.
> It comes from
> http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html
>
> #+BEGIN_SRC R :results output org :exports both
Try
#+BEGIN_SRC R :results output raw :exports both
HTH,
Nick
> library(ascii)
> a <- runif(100)
> c <- "Quantiles of 100 random numbers"
> b <- ascii(quantile(a),header=TRUE,include.colnames=TRUE)
> print(b,type="org")
> rm(a,b,c)
> #+END_SRC
>
> When I tried again now, it renders the table as org source code for
> tables
> |0% |25% |50% |75% |100%|
> |------+------+------+------+------|
> | 0.01 | 0.26 | 0.51 | 0.76 | 1.00 |
>
> And does not format it nicely.
> How can I make this work "the old way"?
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-21 19:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-21 16:08 R code, LaTex export of tables Neuwirth Erich
2012-12-21 19:14 ` Nick Dokos
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).