Re: [O] join two or more tables

2019-08-23 Thread Achim Gratz
Uwe Brauer writes: > Hm, thanks but could you post an example (the one I finally used is > based on R and goes as follows There's a whole tutorial on table manipulation on Worg: https://orgmode.org/worg/org-contrib/babel/examples/lob-table-operations.html It's a bit old so some of the functions m

Re: [O] join two or more tables

2019-08-23 Thread Uwe Brauer
> What about: > #+begin_src emacs-lisp :var t1=nut :var t2=nut2 :colnames yes > (append t1 t2) > #+end_src > #+RESULTS: > | type | Fiber | Sugar | Protein | Carb | > |--+---+---+-+--| > | eggplant | 2.5 | 3.2 | 0.8 | 8.6 | > |

[O] join two or more tables

2019-08-23 Thread emanuel . charpentier
> Hi > > I was googling this a bit, I found more complicated scenarios, but > not how to join one or more tables. > > For example > #+begin_src > > #+tblname: nut > | type | Fiber | Sugar | Protein | Carb | > |--+---+---+-+--| > | eggplant | 2.5 | 3.2 |

Re: [O] join two or more tables

2019-08-18 Thread Uwe Brauer
>>> "AG" == Achim Gratz writes: > Uwe Brauer writes: >> Thanks I knew about it, but it seems very sophisticated and column, not >> row based. > Well, if simple-minded suits you (i.e. the columns are known to have the > same order): > Tables in Org are lists with rows as their

Re: [O] join two or more tables

2019-08-18 Thread Jude DaShiell
ter line to it and perhaps put it into a #Begin-src #End-src block. On Sun, 18 Aug 2019, Uwe Brauer wrote: > Date: Sun, 18 Aug 2019 04:31:04 > From: Uwe Brauer > To: emacs-orgmode@gnu.org > Subject: Re: [O] join two or more tables > > >>> "UB" == Uwe Br

Re: [O] join two or more tables

2019-08-18 Thread Achim Gratz
Uwe Brauer writes: > Thanks I knew about it, but it seems very sophisticated and column, not > row based. Well, if simple-minded suits you (i.e. the columns are known to have the same order): Tables in Org are lists with rows as their elements, and a row is either a symbol or a list of column ele

Re: [O] join two or more tables

2019-08-18 Thread Uwe Brauer
>>> "KM" == Ken Mankoff writes: > On 2019-08-18 at 04:23 -04, Uwe Brauer wrote... >> I was googling this a bit, I found more complicated scenarios, but not >> how to join one or more tables. >> >> [...] >> >> I want to generate a new table total-nuts, which is just a combi

Re: [O] join two or more tables

2019-08-18 Thread Ken Mankoff
On 2019-08-18 at 04:23 -04, Uwe Brauer wrote... > I was googling this a bit, I found more complicated scenarios, but not > how to join one or more tables. > > [...] > > I want to generate a new table total-nuts, which is just a combination > of the two tables, nuts and nuts2 Does https://github.

Re: [O] join two or more tables

2019-08-18 Thread Uwe Brauer
>>> "UB" == Uwe Brauer writes: > Hi > I was googling this a bit, I found more complicated scenarios, but not > how to join one or more tables. > For example > #+begin_src > #+tblname: nut > | type | Fiber | Sugar | Protein | Carb | > |--+---+---+-

[O] join two or more tables

2019-08-18 Thread Uwe Brauer
Hi I was googling this a bit, I found more complicated scenarios, but not how to join one or more tables. For example #+begin_src #+tblname: nut | type | Fiber | Sugar | Protein | Carb | |--+---+---+-+--| | eggplant | 2.5 | 3.2 | 0.8 | 8.6 | | tomatoe