From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] feature request: extracting non-sequential columns and/or rows from a table Date: Thu, 07 Jul 2011 19:26:06 -0600 Message-ID: <87aacp1rg4.fsf@gmail.com> References: <87tyayqtek.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf02T-0003Nb-VX for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 21:39:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qf02R-0002iR-T5 for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 21:39:29 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:52191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qf02R-0002hb-EZ for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 21:39:27 -0400 Received: by mail-iy0-f169.google.com with SMTP id 8so1657742iyl.0 for ; Thu, 07 Jul 2011 18:39:26 -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: emacs-orgmode@gnu.org Hi Eric, Unfortunately I recently became very busy, so I will not be able to address this any time soon. However, the indexing behavior is self contained in the `org-babel-ref-index-list' function, so feel free to take a crack at that function. If you are able to implement your syntax as described below I would be happy to help fold in the change. Cheers -- Eric Eric S Fraga writes: > Hello, > > this is a very low priority request so please feel free to ignore or put > at the bottom of what I'm sure is a long list of TODOs... > > I have a data table. In different code blocks, I need to access > different sets of columns (or rows) from this table. At present, I am > passing the whole table to the code blocks and then extracting the > columns (or rows) within the code. However, it would be nice if I could > specify the actual column I want directly in the :var header argument, > such as > > : #+begin_src octave :var data=mytable[0:-1;1:3,5:6] > > where I've used a semi-colon to separate dimension indices and used a > comma to separate multiple ranges within an index. This, I realise, is > a change to the current syntax... but I'm doing this just for > illustration. > > As I said, I have a workaround so this is indeed a low priority request! > > Thanks, > eric -- Eric Schulte http://cs.unm.edu/~eschulte/