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
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
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
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
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
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,
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
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
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
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
10 matches
Mail list logo