From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4qikNmzY3V4teAAA0tVLHw (envelope-from ) for ; Mon, 08 Jun 2020 06:19:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KF9BMmzY3V5qYgAA1q6Kng (envelope-from ) for ; Mon, 08 Jun 2020 06:19:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 00FBF9403EC for ; Mon, 8 Jun 2020 06:19:23 +0000 (UTC) Received: from localhost ([::1]:38580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiB7x-00085I-HP for larch@yhetil.org; Mon, 08 Jun 2020 02:19:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiB7R-00084w-E5 for emacs-orgmode@gnu.org; Mon, 08 Jun 2020 02:18:49 -0400 Received: from smtp1-g21.free.fr ([212.27.42.1]:27794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiB7Q-00056q-79 for emacs-orgmode@gnu.org; Mon, 08 Jun 2020 02:18:49 -0400 Received: from [IPv6:2a01:e35:39f3:4610:c18:c7fe:c236:89d5] (unknown [IPv6:2a01:e35:39f3:4610:c18:c7fe:c236:89d5]) by smtp1-g21.free.fr (Postfix) with ESMTPS id 43CB3B005BB for ; Mon, 8 Jun 2020 08:18:45 +0200 (CEST) Subject: Re: [join rows] (was: join tables from different files) To: emacs-orgmode@gnu.org References: <878sh0q66c.fsf@mat.ucm.es> <87lfkync8o.fsf_-_@mat.ucm.es> From: tbanelwebmin Message-ID: Date: Mon, 8 Jun 2020 08:18:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <87lfkync8o.fsf_-_@mat.ucm.es> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: none client-ip=212.27.42.1; envelope-from=tbanelwebmin@free.fr; helo=smtp1-g21.free.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/08 02:18:45 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: mN9EXxBxm/Bb Le 07/06/2020 à 17:09, Uwe Brauer a écrit : > "t" == tbanelwebmin writes: > > Yes you can. > Use an org-id > > Thanks! Nice! > > > I have a another question in this context: > can I join, say 4 tables, but row wise? > Say I have > > #+TBLNAME: RK > #+ATTR_HTML: :border 2 :rules all :frame border > | met | Q1 | Q2 | Q3 | total | > |-----+----+----+-----+-------| > | RK | 1 | 1 | 0.5 | 2.5 | > #+TBLFM: $5=$2+$3+$4 > > #+TBLNAME: SVD > #+ATTR_HTML: :border 2 :rules all :frame border > | met | Q1: | Q2 | Q3 | total | > |-----+-----+----+----+-------| > | SVD | 0.5 | 1 | 1 | 2.5 | > #+TBLFM: $5=$2+$3+$4;f1 > > #+TBLNAME: MIN > #+ATTR_HTML: :border 2 :rules all :frame border > | met | Q1 | Q2 | total | > |-----+----+-----+-------| > | MIN | 2 | 0.5 | 2.5 | > #+TBLFM: $4=$2+$3 > > #+TBLNAME: BDF > #+ATTR_HTML: :border 2 :rules all :frame border > | met | Q1 | Q2 | total | > |-----+------+------+-------| > | MIN | 0.75 | 1.75 | 2.5 | > #+TBLFM: $4=$2+$3 > > Since they don't have the same amount of columns, I'd like to join the 4 tables like this > #+TBLNAME: Total1 > #+ATTR_HTML: :border 2 :rules all :frame border > | met | Q1 | Q2 | Q3 | total | > |-----+-----+----+-----+-------| > | RK | 1 | 1 | 0.5 | 2.5 | > |-----+-----+----+-----+-------| > | SVD | 0.5 | 1 | 1 | 2.5 | > #+TBLFM: $5=$2+$3+$4;f1 > > #+TBLNAME: Total2 > #+ATTR_HTML: :border 2 :rules all :frame border > | met | Q1 | Q2 | total | > |-----+------+------+-------| > | MIN | 2 | 0.5 | 2.5 | > |-----+------+------+-------| > | MIN | 0.75 | 1.75 | 2.5 | > #+TBLFM: $4=$2+$3 > > Is this possible? > > regards > Uwe Brauer I'm not aware of anything specific for this purpose. A starting point could be the `append' lisp function: #+begin_src elisp :var table1=RK :var table2=SVD :colnames t (append table1 table2) #+end_src #+RESULTS: | met | Q1: | Q2 | Q3 | total | |-----+-----+----+-----+-------| | RK | 1 | 1 | 0.5 | 2.5 | | SVD | 0.5 | 1 | 1 | 2.5 |