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 11:05:51 -0700 Message-ID: <87twv1g8ao.fsf@posteo.de> References: <87y4kefvo9.fsf@posteo.de> <87wpzyfn46.fsf@posteo.de> <87vbfieywt.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]:51035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwaHj-0000OB-9h for emacs-orgmode@gnu.org; Sun, 24 May 2015 14:06:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwaHe-00030k-A6 for emacs-orgmode@gnu.org; Sun, 24 May 2015 14:06:03 -0400 Received: from mx02.posteo.de ([89.146.194.165]:58269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwaHe-00030e-3w for emacs-orgmode@gnu.org; Sun, 24 May 2015 14:05:58 -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 10:09, Thomas S. Dye wrote: > Titus von der Malsburg writes: > >> 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 colna= mes. 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 m= e NULL. > > rownames(v) is also NULL. > > You are asking Org mode to produce a table with row and column names > from a vector, which lacks rows and columns. What behavior do you > expect? Almost anything is better than Org showing me values that do not exist in the original data. Empty cells for row and columns names are probably the best solution because that would be faithful to the data and to the settings (:rownames yes :colnames yes). Titus --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVYhL/AAoJEK40WfPGE2idmmMIAI3mgD9cZCqvcauxsrVBO1uu 8KATDcLr6gdfrqjAtcHec0hXj5IKIBcYNXgdwUEzjPE/s4popFYuqZIxXIf6N/Cl qy/FADqjzFvuAHNKDSBVnYHekoCY+tiqinrH+7/4S2L23/Rnsu12cIZ8JRLQQpeM ad91pwu+mXiFyB9Dr8upd/W66MQfOOS/6L7cnEV58nF4u+hlZkw1X5fqTG5wEufT AYKl3LSp0X2e+XnCPr1fiq6+RqUQFN2woedbirekZD+/YjpGhmDqjUv6s4M9fboU I4Gsi8LiqbRNDO4AMqWl5wvhuZFaVb+LtgxpUnRRPqh9RpU5rXlzwAPkBTo42+w= =5j5W -----END PGP SIGNATURE----- --=-=-=--