From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gauland Subject: org tables into R? Date: Fri, 2 Jan 2015 19:57:18 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y78Lm-00060g-Ru for emacs-orgmode@gnu.org; Fri, 02 Jan 2015 14:57:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y78Lj-0008QU-Mj for emacs-orgmode@gnu.org; Fri, 02 Jan 2015 14:57:34 -0500 Received: from plane.gmane.org ([80.91.229.3]:38465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y78Lj-0008QD-G3 for emacs-orgmode@gnu.org; Fri, 02 Jan 2015 14:57:31 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y78Le-0001gG-VI for emacs-orgmode@gnu.org; Fri, 02 Jan 2015 20:57:28 +0100 Received: from 252.231.143.49.static.amuri.net ([252.231.143.49.static.amuri.net]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Jan 2015 20:57:26 +0100 Received: from mikelygee by 252.231.143.49.static.amuri.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Jan 2015 20:57:26 +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: emacs-orgmode@gnu.org I want to use an R block to manipulate data from an org table, but I'm not getting what I expect. If I define a table like this: #+NAME: data | A | B | C | |-----+-----+----| | 115 | 76 | 60 | | 124 | 78 | 55 | | 118 | 73 | 65 | | 114 | 75 | 61 | | 108 | 74 | 82 | and pass it into R like this: #+BEGIN_SRC R :results output :exports both :session :var data.table=data names(data.table) head(data.table) #+END_SRC I expect to get a table with three columns ("A", "B", and C"), but instead I seem to get a single column named "A.B.C": #+RESULTS: : [1] "A.B.C" : A.B.C : 1 115 76 60 : 2 124 78 55 : 3 118 73 65 : 4 114 75 61 : 5 108 74 82 What am I doing wrong? Thanks, Michael Gauland