From: Ihor Radchenko <yantar92@gmail.com>
To: Felix Dorner <felix.dorner@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Concatenating results
Date: Mon, 03 Oct 2022 16:45:29 +0800 [thread overview]
Message-ID: <87pmf9wb12.fsf@localhost> (raw)
In-Reply-To: <CALG+_hDqcfZV5Z47Umb27EBsA1+yZ9OOZmuXYXtHK7_wAA4mVA@mail.gmail.com>
Felix Dorner <felix.dorner@gmail.com> writes:
> I have a list of N source blocks, of which each produces a table, and all
> these tables have the same column count. What is the easiest way to now
> make a single table which is the result of calling all these blocks and
> concatenating the result?
>
> Essentially, would be also the same as N CALL together but all append to
> the same result instead of a result for each CALL.
There are can be multiple ways to achieve what you want.
One way could be using noweb references:
#+name: block1
#+begin_src emacs-lisp :results table
'((1 2) (3 4))
#+end_src
#+name: block2
#+begin_src emacs-lisp :results table
'((5 6) (7 8))
#+end_src
#+begin_src emacs-lisp
(append
'<<block1()>>
'<<block2()>>)
#+end_src
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2022-10-03 8:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-03 8:27 Concatenating results Felix Dorner
2022-10-03 8:45 ` Ihor Radchenko [this message]
2022-10-03 9:23 ` Felix Dorner
2022-10-03 9:29 ` Ihor Radchenko
2022-10-04 3:47 ` Felix Dorner
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmf9wb12.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=felix.dorner@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).