From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: left aligned changes to right alignment in table after adding one row - possible bug? Date: Mon, 13 Oct 2014 12:43:29 +0200 Message-ID: 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]:59581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xdd6Z-0001N2-LK for emacs-orgmode@gnu.org; Mon, 13 Oct 2014 06:44:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xdd6S-0000AV-5p for emacs-orgmode@gnu.org; Mon, 13 Oct 2014 06:43:55 -0400 Received: from plane.gmane.org ([80.91.229.3]:40078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xdd6R-0000AP-Sy for emacs-orgmode@gnu.org; Mon, 13 Oct 2014 06:43:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xdd6Q-0007Xx-Sn for emacs-orgmode@gnu.org; Mon, 13 Oct 2014 12:43:46 +0200 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Oct 2014 12:43:46 +0200 Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Oct 2014 12:43:46 +0200 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable #+PROPERTY: header-args :exports both * Changing alignment when one row is added Despite of all values are strings, the alignment changes in the below example. Is this a bug or am I missing something? Thanks, Rainer ** Here it works The column pm and pb are left aligned as expected for strings (correct?). #+begin_src R :colnames yes :rownames yes=20 x <- structure(c("-1.358", "-1.957", "-1.752", "-1.773", "-1.886",=20 "-1.948", "-1.754", "-1.730", "-1.859", "-1.900", "4.757", "5.708",=20 "5.419", "5.408", "5.493", "5.581", "5.250", "5.193", "5.329",=20 "5.396", "", "*0.000 *** *", "*0.034 **", "0.411", "*0.002 ***",=20 "0.376", "0.055 .", "0.134", "*0.012 **", "0.243", "", "*0.000 *** *",=20 "0.072 .", "0.833", "0.228", "0.549", "0.061 .", "0.756", "0.128",=20 "0.916", "", "*0.000 *** *", "*0.048 **", "0.938", "0.389", "0.640",=20 "*0.044 **", "0.598", "0.217", "0.941"), .Dim =3D c(10L, 5L), .Dimnames =3D= list( c("Quercus robur - single", "Quercus robur - 95", "Quercus robur - 90",= =20 "Quercus robur - 85", "Quercus robur - 80", "Quercus robur - 75",=20 "Quercus robur - 70", "Quercus robur - 65", "Quercus robur - 60",=20 "Quercus robur - 55"), c("slope", "intercept", "p", "pm",=20 "pb"))) head(x, 5) #+end_src #+RESULTS: | | slope | intercept | p | pm = | pb | |------------------------+--------+-----------+--------------+-------------= -+--------------| | Quercus robur - single | -1.358 | 4.757 | | = | | | Quercus robur - 95 | -1.957 | 5.708 | *0.000 *** * | *0.000 *** *= | *0.000 *** * | | Quercus robur - 90 | -1.752 | 5.419 | *0.034 ** | 0.072 . = | *0.048 ** | | Quercus robur - 85 | -1.773 | 5.408 | 0.411 | 0.833 = | 0.938 | | Quercus robur - 80 | -1.886 | 5.493 | *0.002 *** | 0.228 = | 0.389 | ** Here it doesn't By adding row 6, pm and pb become right aligned. This can also be reproduced by only using columns 5:7 (~x[5:7,]~ instead of ~head(x,6)~). #+begin_src R :colnames yes :rownames yes=20 x <- structure(c("-1.358", "-1.957", "-1.752", "-1.773", "-1.886",=20 "-1.948", "-1.754", "-1.730", "-1.859", "-1.900", "4.757", "5.708",=20 "5.419", "5.408", "5.493", "5.581", "5.250", "5.193", "5.329",=20 "5.396", "", "*0.000 *** *", "*0.034 **", "0.411", "*0.002 ***",=20 "0.376", "0.055 .", "0.134", "*0.012 **", "0.243", "", "*0.000 *** *",=20 "0.072 .", "0.833", "0.228", "0.549", "0.061 .", "0.756", "0.128",=20 "0.916", "", "*0.000 *** *", "*0.048 **", "0.938", "0.389", "0.640",=20 "*0.044 **", "0.598", "0.217", "0.941"), .Dim =3D c(10L, 5L), .Dimnames =3D= list( c("Quercus robur - single", "Quercus robur - 95", "Quercus robur - 90",= =20 "Quercus robur - 85", "Quercus robur - 80", "Quercus robur - 75",=20 "Quercus robur - 70", "Quercus robur - 65", "Quercus robur - 60",=20 "Quercus robur - 55"), c("slope", "intercept", "p", "pm",=20 "pb"))) head(x, 6) #+end_src #+RESULTS: | | slope | intercept | p | pm= | pb | |------------------------+--------+-----------+--------------+-------------= -+--------------| | Quercus robur - single | -1.358 | 4.757 | | = | | | Quercus robur - 95 | -1.957 | 5.708 | *0.000 *** * | *0.000 *** *= | *0.000 *** * | | Quercus robur - 90 | -1.752 | 5.419 | *0.034 ** | 0.072 .= | *0.048 ** | | Quercus robur - 85 | -1.773 | 5.408 | 0.411 | 0.833= | 0.938 | | Quercus robur - 80 | -1.886 | 5.493 | *0.002 *** | 0.228= | 0.389 | | Quercus robur - 75 | -1.948 | 5.581 | 0.376 | 0.549= | 0.64 | =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJUO6zWAAoJENvXNx4PUvmCkicH/An753owEPD0BfOtp+Z2Tebk rJlGTDFY9jKQbU3wPN8M9tZJyfgupAdSzQr6SsGCbMZHPjjFYYSBjg2xFjTj4/Vp Oc+oxJl1c6O8up3ey18Lfakp78JZ4L0jZIj0FLKMSAS5osVcDOVJK1dVneFnbTBZ tkQ/PGWrNwAsav+TM+CNcY8ZUSovtrwVuiDdbKqW12FLzCm9vAfGdUbXUtMX5oEK MT/Ftvg40c6KEsX1fn7utyoQFL+Brfhaz4ZB1JGXPN7i/vT2dGblwPPoKXnUpnXI s0mMcPXxGv6DLfwfaWdzKL53Di2uxIW5s+ruixTCe7KPo+xtXO6lW62shT5nZSc= =bAck -----END PGP SIGNATURE----- --=-=-=--