From: tsd@tsdye.com (Thomas S. Dye)
To: Titus von der Malsburg <malsburg@posteo.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: 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 [thread overview]
Message-ID: <m2zj4utq6i.fsf@tsdye.com> (raw)
In-Reply-To: <87y4kefvo9.fsf@posteo.de> (Titus von der Malsburg's message of "Sat, 23 May 2015 21:26:14 -0700")
Titus von der Malsburg <malsburg@posteo.de> 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
next prev parent reply other threads:[~2015-05-24 7:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-24 4:26 Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)] Titus von der Malsburg
2015-05-24 7:01 ` Thomas S. Dye [this message]
2015-05-24 7:31 ` Titus von der Malsburg
2015-05-24 15:36 ` Thomas S. Dye
2015-05-24 16:13 ` Titus von der Malsburg
2015-05-24 17:09 ` Thomas S. Dye
2015-05-24 18:05 ` Titus von der Malsburg
2015-05-29 9:37 ` Nicolas Goaziou
2015-05-29 18:00 ` Sebastien Vauban
2015-05-29 18:09 ` Charles C. Berry
2015-05-29 18:54 ` Titus von der Malsburg
2015-05-29 19:14 ` Thomas S. Dye
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2zj4utq6i.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=malsburg@posteo.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).