From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: [babel, bug?] colnames with a list of columns does not work Date: Thu, 22 Jan 2015 05:37:34 -1000 Message-ID: References: <86zj9bytg4.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEJpa-0006Px-44 for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 10:38:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEJpU-0007vT-J6 for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 10:38:02 -0500 Received: from plane.gmane.org ([80.91.229.3]:60720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEJpU-0007s9-D5 for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 10:37:56 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YEJpQ-00049T-Gh for emacs-orgmode@gnu.org; Thu, 22 Jan 2015 16:37:52 +0100 In-Reply-To: <86zj9bytg4.fsf@example.com> (Sebastien Vauban's message of "Thu, 22 Jan 2015 11:56:43 +0100") 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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Aloha Seb, I don't think babel knows anything about objects created within source code blocks. I think you'll have to set the column names yourself, within the R source code block. All the best, Tom Sebastien Vauban writes: > Hello, > > The following ECM shows it all: > > #+begin_src R :rownames yes :colnames '(Lg Nb) > data(iris) > head(table(iris$Petal.Length, iris$Species)[, "setosa"]) > #+end_src > > returns: > > | | x | > |-----+----| > | 1 | 1 | > | 1.1 | 1 | > | 1.2 | 2 | > | 1.3 | 7 | > | 1.4 | 13 | > | 1.5 | 13 | > > while I was expecting: > > | Lg | Nb | > |-----+----| > | 1 | 1 | > | 1.1 | 1 | > | 1.2 | 2 | > | 1.3 | 7 | > | 1.4 | 13 | > | 1.5 | 13 | > > Am I missing something? > > Best regards, > Seb -- Thomas S. Dye http://www.tsdye.com