Re: [O] How to pass named table reference in source block variable

2013-08-08 Thread Roland Donat
Eric Schulte gmail.com> writes: > > It sounds like you want to use tables like key-value stores. I think > adding such behavior directly to Org-mode would overly complicate the > data structures passed between code blocks (which currently only > consists of scalars and tables). However, maybe

Re: [O] How to pass named table reference in source block variable

2013-08-08 Thread Eric Schulte
Roland Donat writes: > Thomas S. Dye tsdye.com> writes: > >> >> Roland Donat gmail.com> writes: >> >> >> >> >> Perhaps this can help: >> >> >> >> http://orgmode.org/worg/org-contrib/babel/examples/lob-table- >> > operations.html >> >> >> >> Alternatively, you might pass the table to a code

Re: [O] How to pass named table reference in source block variable

2013-08-08 Thread Roland Donat
Thomas S. Dye tsdye.com> writes: > > Roland Donat gmail.com> writes: > > >> > >> Perhaps this can help: > >> > >> http://orgmode.org/worg/org-contrib/babel/examples/lob-table- > > operations.html > >> > >> Alternatively, you might pass the table to a code block of a language > >> that under

Re: [O] How to pass named table reference in source block variable

2013-08-07 Thread Thomas S. Dye
Roland Donat writes: >> >> Perhaps this can help: >> >> http://orgmode.org/worg/org-contrib/babel/examples/lob-table- > operations.html >> >> Alternatively, you might pass the table to a code block of a language >> that understands tables, such as an R data frame, and use that language >> to r

Re: [O] How to pass named table reference in source block variable

2013-08-07 Thread Roland Donat
Thomas S. Dye tsdye.com> writes: > > Perhaps this can help: > > http://orgmode.org/worg/org-contrib/babel/examples/lob-table- operations.html > > Alternatively, you might pass the table to a code block of a language > that understands tables, such as an R data frame, and use that language > t

Re: [O] How to pass named table reference in source block variable

2013-08-07 Thread Thomas S. Dye
Roland Donat writes: > Thorsten Jolitz gmail.com> writes: > >> >> This does the job in Emacs Lisp: >> >> #+TBLNAME: T >> | | x | 1 | >> | ^ | | varx | >> >> #+begin_src emacs-lisp :var x=T[0,-1] >> x >> #+end_src >> >> #+results: >> : 1 >> > > Thanks for the answer but in fact,

Re: [O] How to pass named table reference in source block variable

2013-08-07 Thread Roland Donat
Thorsten Jolitz gmail.com> writes: > > This does the job in Emacs Lisp: > > #+TBLNAME: T > | | x | 1 | > | ^ | | varx | > > #+begin_src emacs-lisp :var x=T[0,-1] > x > #+end_src > > #+results: > : 1 > Thanks for the answer but in fact, my objective is precisely to avoid using

Re: [O] How to pass named table reference in source block variable

2013-08-06 Thread Nick Dokos
Thorsten Jolitz writes: > Roland Donat writes: > >> Hello, >> >> I have the following table : >> #+TBLNAME: T > > This does the job in Emacs Lisp: > > #+TBLNAME: T > | | x | 1 | > | ^ | | varx | > > #+begin_src emacs-lisp :var x=T[0,-1] > x > #+end_src > > #+results: > : 1 Nit: I b

Re: [O] How to pass named table reference in source block variable

2013-08-06 Thread Thorsten Jolitz
Roland Donat writes: > Hello, > > I have the following table : > #+TBLNAME: T > | | x | 1 | > | ^ | | varx | > > And I would like to use the reference T$var_x (=1) as input in a source block > variable. > For example, I would have expected the following behavior for this source > code

[O] How to pass named table reference in source block variable

2013-08-06 Thread Roland Donat
Hello, I have the following table : #+TBLNAME: T | | x | 1 | | ^ | | varx | And I would like to use the reference T$var_x (=1) as input in a source block variable. For example, I would have expected the following behavior for this source code : #+begin_src python :var x=T$varx :retur