From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: Re: [babel] R - variable names in summary Date: Tue, 08 Dec 2009 23:38:16 -0500 Message-ID: References: <2c75873c0912081550m5da3861fgb3a14f047f8638ae@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0948320183==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIEL1-0005Jr-Ni for emacs-orgmode@gnu.org; Tue, 08 Dec 2009 23:39:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIEKx-0005EW-1A for emacs-orgmode@gnu.org; Tue, 08 Dec 2009 23:39:43 -0500 Received: from [199.232.76.173] (port=37836 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIEKw-0005EJ-Lr for emacs-orgmode@gnu.org; Tue, 08 Dec 2009 23:39:38 -0500 Received: from lo.gmane.org ([80.91.229.12]:34430) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NIEKw-0007M1-IK for emacs-orgmode@gnu.org; Tue, 08 Dec 2009 23:39:38 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NIEKI-0000fX-3R for emacs-orgmode@gnu.org; Wed, 09 Dec 2009 05:38:58 +0100 Received: from colossus.cvs.rochester.edu ([128.151.80.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Dec 2009 05:38:58 +0100 Received: from austin.frank by colossus.cvs.rochester.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 Dec 2009 05:38:58 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0948320183== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, Dec 08 2009, Graham Smith wrote: > The colnames t works as expected, but how do I then see the variable > names when using the summary command, and str doesn't work at all > (source block produced no output) . They appear OK in the R buffer. This is help from the R side, not from the org-babel side. If these suggestions don't work, one of the babelers will have to step in. Many functions that print output to the interactive buffer will not produce that output when called outside of the interactive buffer. For these functions, if you wrap them in print() you can usually get the results you want. So, in your R code blocks, try print(summary(whatever)) and print(str(whatever)) If all you need is the names of the columns, print(names(whatever)) might be useful. HTH, /au =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAksfKbgACgkQlHMl2/XbR4EU2gCfRPoVqVF8SMc22aaprCIWqCqA SAYAmgNVud55xBjYgb274wfLldFkE+dI =NY0x -----END PGP SIGNATURE----- --=-=-=-- --===============0948320183== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0948320183==--