From mboxrd@z Thu Jan 1 00:00:00 1970 From: Titus von der Malsburg 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: Sun, 24 May 2015 09:13:54 -0700 Message-ID: <87vbfieywt.fsf@posteo.de> References: <87y4kefvo9.fsf@posteo.de> <87wpzyfn46.fsf@posteo.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwYXN-0005eC-Ty for emacs-orgmode@gnu.org; Sun, 24 May 2015 12:14:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwYXJ-00040L-Tk for emacs-orgmode@gnu.org; Sun, 24 May 2015 12:14:05 -0400 Received: from mx02.posteo.de ([89.146.194.165]:52938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwYXJ-00040A-NI for emacs-orgmode@gnu.org; Sun, 24 May 2015 12:14:01 -0400 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2015-05-24 Sun 08:36, Thomas S. Dye wrote: > Titus von der Malsburg writes: > >>> You got the result of rownames(x), which is expected. The table you >>> expect is given by the following code: >> >> Ah, I see, thanks. Although the results is still somewhat >> unexpected. c("One:", "Two:") doesn=E2=80=99t have rownames and colname= s. So >> org apparently made them up when generating the table. > > Also expected due to :rownames yes :colnames yes. Without those two > header arguments: > Consider this example: #+BEGIN_SRC R :results table :exports results :colnames yes :rownames yes v <- c("a", "b") #+END_SRC #+RESULTS: | | x | |---+---| | 1 | a | | 2 | b | Where is the =E2=80=9Cx=E2=80=9D coming from? In R, colnames(v) gives me N= ULL. > #+header: :session > #+BEGIN_SRC R :results table :exports results > x <- data.frame(a=3D1:2, b=3D3:4) > rownames(x) <- c("One:", "Two:") > #+END_SRC > > #+results: > | One: | > | Two: | > > hth, > Tom --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVYfjCAAoJEK40WfPGE2id6T4H/j3+Ba5v1aGfcuyiyYubp05d CbndbDA+naWcPHWwTzfk6Y/W39pfwvTpkFREIubI8zI0wkRS8mjdyyj2hBR5BEc5 GLbVUiurrYvAUNhE/5OFJtGEQt4Cm7q0sfxtAoXQaLg7g2TWXgcFmRwlSBIvdY8B uTqliQ2SnQtf2Oyz63kXfNvZ4t4F6aD/jrfaYt10kvxpm9LuLASZNvoIvKbCvUe0 0FNxMLyRNyODoNuzooDnazg54IU6YBrI/y+x3VcHLxn+8huvpACDuOrNGX/GSHxm F17+NNQvDFkFlqDcqBTyMCQwaWBycwirhYNnGYiIpQWz1AZEZthtg9wlx38uMw4= =N0j6 -----END PGP SIGNATURE----- --=-=-=--