From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [Babel] Header arguments Date: Sat, 14 May 2011 08:05:08 -0600 Message-ID: <87vcxd73ee.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLFzw-0007ye-Ih for emacs-orgmode@gnu.org; Sat, 14 May 2011 10:39:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLFzv-0000n4-3I for emacs-orgmode@gnu.org; Sat, 14 May 2011 10:39:16 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:60862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLFzu-0000mi-SE for emacs-orgmode@gnu.org; Sat, 14 May 2011 10:39:15 -0400 Received: by pvc12 with SMTP id 12so2253693pvc.0 for ; Sat, 14 May 2011 07:39:13 -0700 (PDT) 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 tsd@tsdye.com (Thomas S. Dye) writes: > Aloha all, > > I have a little function that graphs two 14C dates (below). The data > are held in tables produced by a software package that I access on the > web. I read these into Org-mode and give them a #+tblname:, as shown > below. I'd like to have one function that will graph any number of tables > but I don't know how to package up the table references and get them > inside the function. If I put them in a table, they end up as strings > inside the function. > Hi Tom, The following example might work, it uses an emacs-lisp code block to wrap any number of tables into a single list of tables which could then be passed to R. #+data: table-names - first-table - second-table - third-table #+data: first-table | a | 1 | | b | 2 | #+data: second-table | c | 3 | | d | 4 | #+data: third-table | e | 5 | | f | 6 | #+begin_src emacs-lisp :var table-names=table-names (mapcar #'org-babel-ref-resolve table-names) #+end_src #+results: | (a 1) | (b 2) | | (c 3) | (d 4) | | (e 5) | (f 6) | -- Eric Schulte http://cs.unm.edu/~eschulte/