From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iNHyA2AfHGGLQQEAgWs5BA (envelope-from ) for ; Tue, 17 Aug 2021 22:43:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gAxHO18fHGHvEQAAB5/wlQ (envelope-from ) for ; Tue, 17 Aug 2021 20:43:11 +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 39C46FC00 for ; Tue, 17 Aug 2021 22:43:11 +0200 (CEST) Received: from localhost ([::1]:55850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mG5vS-0007Km-80 for larch@yhetil.org; Tue, 17 Aug 2021 16:43:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG5uj-0007IX-VM for emacs-orgmode@gnu.org; Tue, 17 Aug 2021 16:42:27 -0400 Received: from esa06.ucs.mun.ca ([134.153.136.26]:11648) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG5uh-0000yX-9O for emacs-orgmode@gnu.org; Tue, 17 Aug 2021 16:42:25 -0400 IronPort-SDR: Q2fSeFsHiDwFrPmTAGaQfA5BhZ2iYdKIdUcGyMCOwio5fOFCJuXknaLqRFqhmPJocruqQQMhEs 7Z4YiJXNKP4WZ78RRQvLSSDiKJ8TGuBIaWMfLRrqI7cOcx22QQAgNkuCcXY1O5oFOFR4vp5K4W oSef/bTR67iR7o/WzeUseseEELSdfIlTWGndiTtUw+PRtlwCb6Jzl7O3MUNUdgqttEObf9LjD2 B4PHhLUZvnBC0ryxgocT6wXxw8UB6nDyLevNM1/ai7qnxshBWOlILpV2OS7cEbRYwM9DWByAp9 s4w= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AYe+HGqBSpZGq9nPlHel655DYdb4zR+YMi2?= =?us-ascii?q?TDsHoBMyC9E/bo7PxG88506faZskd1ZJgso7u90cq7MAvhHPxOkO8s1N6ZNW?= =?us-ascii?q?GN1QfGXeNfBO3Zslnd8kXFh5NgPMxbAtFD4bPLfD9HpPe/yy2WPfoQ/eGuya?= =?us-ascii?q?3Av5a885+wJTsaF52I6T0YNi+rVnJfYSlqLr4XOre7wuJmgFObGEgqUg=3D?= =?us-ascii?q?=3D?= X-IronPort-AV: E=Sophos;i="5.84,329,1620700200"; d="scan'208";a="64100192" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from cpe00fc8db7a323-cm00fc8db7a320.cpe.net.cable.rogers.com (HELO pyrope.local) ([174.117.202.255]) by smtp06.ucs.mun.ca with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2021 18:12:18 -0330 References: User-agent: mu4e 1.5.6; emacs 27.2 From: Roger Mason To: emacs-orgmode@gnu.org Subject: Re: return column from table as a column In-reply-to: Date: Tue, 17 Aug 2021 18:12:16 -0230 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=134.153.136.26; envelope-from=rmason@mun.ca; helo=esa06.ucs.mun.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629232991; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=FZBEBGZzKsGPFJyH77GwQ9zHmN1CWDrZMccVhcm15Q8=; b=sA/bDKIdAbB463A7i0eUMW35J5NnmkNeWvXefVAL1Fkd1467RCPEC4MdRPQQOURAeDXRSB rZikKjzIFkLBYPckrismQTv4shojm+pZ52ddeNHTYA3dJlMhWEmHLthJLKhTRPvG/S0+hG DDnPVq9ZDoWdVcApTAB4yYzarW14NRA+tpkT0D2qeR0Vh3q9aTeZ8Ontd08gVFu/hst73e 1E27DPlc12B0grwALAogU1ofaueSg0iw7jLZRzF6qrBPLxxQqmzAq1uiK8d/PKwWtRjLf6 kvFNUlsNoydIpyAeHr56LbtE9tfJZ8XKmafLDcNF3zT0UhMcf2/HKpnV5yqAig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629232991; a=rsa-sha256; cv=none; b=H/RTYWmFPdaiivbnNGcRwOtUncstL3F3R/xNhucyK8Qb7n5ffGVuiVOMcvI7k+Z/p3ExDB ovRC1Ry8YonmTRfAbEPIylweq312Yo17HWWidIZJAEcYx91k5ZHhVTc6vM21FcxYSNG7wY c+i8PPkdgRWNGAxEudUNfvYCOUV9XYRC96d/jRQO2S3aCmWVutCWxhtwOXBaAHxlQ2mZWt Q+FpRyPmeQK/TnP8hs9kuPWYG/quLtzN0Y04h2zz3o6Pivl701jHcTm9jF6xEPYxIH3MRg DTWyOIQIs2Hwa6FBY9Wk4HG0JhBMKwfuKoJ2MjqqYKg6voDJ24JWPKk4dH4bmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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-Migadu-Spam-Score: -2.42 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-Migadu-Queue-Id: 39C46FC00 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: l3cJ/5/vPZLr Hello, Maxim Nikulin writes: > Notice that you can get vertical representation of results as a list > #+begin_src emacs-lisp :results list > > The following is a variation of a recipe suggested by Juan Manuel: > > #+name: to-column > #+begin_src emacs-lisp :var lst=() > (mapcar #'list lst) > #+end_src > > #+begin_src emacs-lisp :var data=s1[,3] :post to-column(lst=*this*) > data > #+end_src > > To transform more than one column, the following idea may be useful > > (defun rotate (list-of-lists) > (apply #'mapcar #'list list-of-lists)) > > https://stackoverflow.com/questions/3513128/transposing-lists-in-common-lisp Thank you very much. I should really make the effort to re-learn e-lisp. Not having written anything in it for 10+ years has eroded my abilities. Best wishes, Roger