all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: join two or more tables
Date: Sun, 18 Aug 2019 12:49:22 +0200	[thread overview]
Message-ID: <87blwmg34d.fsf@Rainer.invalid> (raw)
In-Reply-To: 87v9uuojo5.fsf@mat.ucm.es

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 elements.  So just concatenating the two
lists does (almost) the right thing.  If you know the row has headers,
you need to skip until the first real data row in the second table
(i.e. skip the first row, the first header and then resume the concat).

Your other option is just grabbing the text of both tables, emit it as a
single entity (again you may want to remove the header on the second
table) and then call org-align-table on it.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada

  reply	other threads:[~2019-08-18 10:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-18  8:23 join two or more tables Uwe Brauer
2019-08-18  8:31 ` Uwe Brauer
2019-08-18  8:46   ` [SOLVED] (was: join two or more tables) Uwe Brauer
2019-08-18  8:59     ` [rows not columns] (was: [SOLVED]) Uwe Brauer
2019-08-18 11:00   ` join two or more tables Jude DaShiell
2019-08-18 10:21 ` Ken Mankoff
2019-08-18 10:24   ` Uwe Brauer
2019-08-18 10:49     ` Achim Gratz [this message]
2019-08-18 11:34       ` Uwe Brauer
2019-08-23 18:09         ` Achim Gratz
  -- strict thread matches above, loose matches on Subject: below --
2019-08-23  9:55 emanuel.charpentier
2019-08-23 10:54 ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87blwmg34d.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.