emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (rele


From: Thomas S. Dye
Subject: Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)]
Date: Sat, 23 May 2015 21:01:09 -1000

Titus von der Malsburg <address@hidden> writes:

> I’m exporting the following document to LaTeX
>
> #+BEGIN_SRC R :results table :exports results :colnames yes :rownames yes
>   x <- data.frame(a=1:2, b=3:4)
>   rownames(x) <- c("One:", "Two:")
> #+END_SRC
>
> and expect a table with the following layout:
>
>      a b
> One: 1 3
> Two: 2 4
>
> Instead I got this:
>
>    x
>  1 One:
>  2 Two:

You got the result of rownames(x), which is expected.  The table you
expect is given by the following code:

#+BEGIN_SRC R :results table :exports results :colnames yes :rownames yes
  x <- data.frame(a=1:2, b=3:4)
  rownames(x) <- c("One:", "Two:")
  x
#+END_SRC

#+results:
|      | a | b |
|------+---+---|
| One: | 1 | 3 |
| Two: | 2 | 4 |

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



reply via email to

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