From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iOMcOwaNemLbJAEAbAwnHQ (envelope-from ) for ; Tue, 10 May 2022 18:04:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uLrjOgaNemJ4ZAEA9RJhRA (envelope-from ) for ; Tue, 10 May 2022 18:04:22 +0200 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 32BA517FE1 for ; Tue, 10 May 2022 18:04:22 +0200 (CEST) Received: from localhost ([::1]:48328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noSLU-0007Gs-E5 for larch@yhetil.org; Tue, 10 May 2022 12:04:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noSE5-00011Z-6M for emacs-orgmode@gnu.org; Tue, 10 May 2022 11:56:41 -0400 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:35610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noSE3-00034D-4l for emacs-orgmode@gnu.org; Tue, 10 May 2022 11:56:40 -0400 Received: by mail-qk1-x736.google.com with SMTP id z126so13522091qkb.2 for ; Tue, 10 May 2022 08:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=GMHT/U6O5ciPdj6KjSUr60nwOR927SguPGo4j1vpY88=; b=hSaQ4sxVpwOI9kIEmFZ6kPsjCaaAhTovTtN3Px3ROj5QlIK4aXhNFDac8hb1P00ljc thuIPpxx8b8qTcbSELHbq+ysBCcR7rIx/m0SkE3gvAJ9EYXmhvJEPNFQtuaBBqnKueAo vF+INo56RZIryZ8ub5j7zs/uOVlfN4rqUi6MgszuHCenIOa7Jwt2/NLnedBG7zNUZlR4 btcbAUehC3vuhIBy9Wp3wn6Mu1XvZuNQMiGG/grZbM0S6yIngvJ0n9Q+TU9sLF/YkGIw s3gIpbFYH10rnrDDchGl6cyS3dhCQgEO7rFqHsmt15vzSrCjgqMrqWdM3RF1KESi4X5E cLXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :date:in-reply-to:message-id:mime-version; bh=GMHT/U6O5ciPdj6KjSUr60nwOR927SguPGo4j1vpY88=; b=VJyxXJdWqtHRJ8/HvQP1+709raYRQkqWC1q2f9mBCpoxYuD3v7ayM32javZSoslDBO oiNcImU6guQT1HL1RMlpOyiR+yf6PXHawjeG/yOBNuWDuCc2NSUlVlJ3+NNZZeHGllxB XM4cm6FmK5rO7OVVuUsWjwy6jSTdQsLu/hv0Ecr2NolGfSe2TcRxv9QxJQajP65wBbA5 kQ7q3zG8863bnnIrQqKM65ezdUNUtwU525Xwkts7JdxkraQ6H+ry0ytTEaiw7r4rIGC4 0cQabSxScXWr72/BJh4o0+nxj4sGR3iVHejQdIEPnCi1K67J9h8FOquerYNUf+ei8KAH D4WQ== X-Gm-Message-State: AOAM532CZ7IvCDY5jzb80M7fVOCHYONje/A2vetzoRjxbXpWFWfyRIkd wV8SjLkZd3DfasPiHndT0QxUA27ERc4= X-Google-Smtp-Source: ABdhPJwUFpE1ClN7pVv+2N7ei6MXqhWWxts1XbRx1Mz3VplYhf4EfzJ0EnLo0GxrX37vlBmQBDsPCA== X-Received: by 2002:a37:2f04:0:b0:663:397d:7051 with SMTP id v4-20020a372f04000000b00663397d7051mr15691366qkh.333.1652198195399; Tue, 10 May 2022 08:56:35 -0700 (PDT) Received: from Johns-iMac.local ([2601:547:901:82e0:917a:afc0:3206:d2c3]) by smtp.gmail.com with ESMTPSA id o12-20020a05622a138c00b002f3ca56e6edsm8231030qtk.8.2022.05.10.08.56.34 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 May 2022 08:56:34 -0700 (PDT) References: <87wnewufrz.fsf@mat.ucm.es> <87sfphrh90.fsf_-_@mat.ucm.es> User-agent: mu4e 1.6.10; emacs 28.0.90 From: John Kitchin To: Uwe Brauer Cc: emacs-orgmode@gnu.org Subject: Re: [how to joint column/rows of tables that are in different files (id?)] (was: how to best correct exams (code matlab) using org mode (and tables)) Date: Tue, 10 May 2022 11:56:05 -0400 In-reply-to: <87sfphrh90.fsf_-_@mat.ucm.es> Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::736; envelope-from=johnrkitchin@gmail.com; helo=mail-qk1-x736.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652198662; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GMHT/U6O5ciPdj6KjSUr60nwOR927SguPGo4j1vpY88=; b=gW5WNRpflvYmZDhhnS419mewiGUzqm1IjXVmmed58lHVyRUO5jeF4JDHM1pmvwcErq7D3w Sr+oTJDgOavfmiXScns5EsvapYm6158tnPOcVqh+LLKdwwHpk2rAdD2C8L83v7eATq79wt iQJkhfEurv/r54Y3UcovpmXjqP4e34Vze8kZOf1aGam1hoWS2LPPukp7pEa5u4CfiEJZcs MGTwu6xQSe1pji16VBoteFlHB6HEnK62Fftjfd28LvvffeinQGlk9i6lGFKA8fxqtW/7/y HIPhzXUBhcUooLsRPMPeWlob2/9o8uvGAGi5AmqAnQrPK8Ig1BbZU14WzZgfzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652198662; a=rsa-sha256; cv=none; b=V8b677eDr4zwFtJl+3warNWOjwXhIrkTVjZ53tBBZXGUCx/Tp/juNFfKnRuIH4S7kvQfrv UKe+B58QnU5bSAEyHApUAjRJYbDh0HYsJZ+2aD6zrCnLFss5d1SJO8jyCY6V9dRF0qLqwH BfAtBqO1nsTI72X5ow8+jn/56YtmcFsR1JWvQGgH4rFN9TJN24aKp+Y4GKQmYX6xQkWL8B DbhU/6pLOlEdLGBdd7IcYKyd2zy5KJu6O/mx8IJpJBPiIo8FN8GruG0GLOWll3NhF6CAfR C5S0JirygbCN8GY3cgLDKqk0SSVDH+w8jatKLp3mclxY8K0oz+ls0tDagMV88A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=hSaQ4sxV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=hSaQ4sxV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 32BA517FE1 X-Spam-Score: 6.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0JYucga09CvZ Can you make a temporary org-buffer that copies all those tables into one place, and then join them? Uwe Brauer writes: > I think I almost have a working workflow. > > What I need is a functionality to join either columns or rows of tables > that are in different files. > > Here is what I have in mind for tables that are in the same file > > > ** Columns > > #+NAME: T1 > | col1 | col2 | > > | 1 | 2 | > > #+NAME: T2 > | col3 | > > | 3 | > > #+BEGIN_SRC emacs-lisp :var t1=T1 t2=T2 > (cl-mapcar #'append t1 t2) > #+END_SRC > > > #+RESULTS: > | col1 | col2 | col3 | > | 1 | 2 | 3 | > > ** Rows > > #+BEGIN_SRC emacs-lisp :var t1=T1 t2=T2 > (append t1 t2) > #+END_SRC > > > #+RESULTS: > | col1 | col2 | > | 1 | 2 | > | col3 | | > | 3 | | > > > > Now the 3rd package orgtbl-aggregate allows me to aggerate column of > tables that are in different files, via an ID generated via org-id-get-create > and saved via org-id-update-id-locations > as in > > #+BEGIN: aggregate :table "uwe" :cols "Level" > #+END: > > Where the table uwe is located in a different file. However it seems > only to work for one table at the time, so if you have 20 tables in 20 > files that a bit complicated > > Any idea how to append column or rows from different table in different > files in one go? > > Thanks > > Uwe -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu Pronouns: he/him/his