From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [babel] feature request: extracting non-sequential columns and/or rows from a table Date: Thu, 07 Jul 2011 11:25:39 +0100 Message-ID: <87tyayqtek.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QelmJ-0005GO-Ne for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 06:25:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QelmI-0004H8-PW for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 06:25:51 -0400 Received: from vscane-c.ucl.ac.uk ([144.82.108.43]:55034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QelmH-0004FT-W2 for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 06:25:50 -0400 Received: from [85.210.135.34] (helo=localhost) by vscane-c.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Qelm8-0000Jd-E5 for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 11:25:40 +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 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 S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.586.g382e6)