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

2013-08-08 Thread Roland Donat
Thomas S. Dye tsd at tsdye.com writes: Roland Donat roland.donat at 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 understands

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

2013-08-08 Thread Eric Schulte
Roland Donat roland.do...@gmail.com writes: Thomas S. Dye tsd at tsdye.com writes: Roland Donat roland.donat at 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

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

2013-08-08 Thread Roland Donat
Eric Schulte schulte.eric at 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).

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

2013-08-07 Thread Roland Donat
Thorsten Jolitz tjolitz at 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 the

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

2013-08-07 Thread Thomas S. Dye
Roland Donat roland.do...@gmail.com writes: Thorsten Jolitz tjolitz at 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
Thomas S. Dye tsd at 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 to

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

2013-08-07 Thread Thomas S. Dye
Roland Donat roland.do...@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 understands tables, such as an R data frame, and use that language

[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

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

2013-08-06 Thread Thorsten Jolitz
Roland Donat roland.do...@gmail.com 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

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

2013-08-06 Thread Nick Dokos
Thorsten Jolitz tjol...@gmail.com writes: Roland Donat roland.do...@gmail.com 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