emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] R code, LaTex export of tables


From: Nick Dokos
Subject: Re: [O] R code, LaTex export of tables
Date: Fri, 21 Dec 2012 14:14:02 -0500

Neuwirth Erich <address@hidden> 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"?
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]