* [babel] feature request: extracting non-sequential columns and/or rows from a table
@ 2011-07-07 10:25 Eric S Fraga
2011-07-08 1:26 ` Eric Schulte
0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2011-07-07 10:25 UTC (permalink / raw)
To: emacs-orgmode
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [babel] feature request: extracting non-sequential columns and/or rows from a table
2011-07-07 10:25 [babel] feature request: extracting non-sequential columns and/or rows from a table Eric S Fraga
@ 2011-07-08 1:26 ` Eric Schulte
2011-07-08 8:59 ` Eric S Fraga
0 siblings, 1 reply; 3+ messages in thread
From: Eric Schulte @ 2011-07-08 1:26 UTC (permalink / raw)
To: emacs-orgmode
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 <e.fraga@ucl.ac.uk> 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [babel] feature request: extracting non-sequential columns and/or rows from a table
2011-07-08 1:26 ` Eric Schulte
@ 2011-07-08 8:59 ` Eric S Fraga
0 siblings, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2011-07-08 8:59 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
Eric Schulte <schulte.eric@gmail.com> writes:
> Hi Eric,
>
> Unfortunately I recently became very busy, so I will not be able to
> address this any time soon.
Hi Eric. That's perfectly fine! I completely understand. As I said,
it's a very low priority request.
> 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.
I will do so, i.e. attempt it, but don't hold your breath ;-) my elisp
capabilities may not be up to it but it sounds like a good project for
the summer...
thanks,
eric
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.6 (release_7.6.4.gf305a)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-08 8:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 10:25 [babel] feature request: extracting non-sequential columns and/or rows from a table Eric S Fraga
2011-07-08 1:26 ` Eric Schulte
2011-07-08 8:59 ` Eric S Fraga
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).