From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mP9XLlqbF2GZvAAAgWs5BA (envelope-from ) for ; Sat, 14 Aug 2021 12:30:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +PMbKlqbF2EyPwAA1q6Kng (envelope-from ) for ; Sat, 14 Aug 2021 10:30:50 +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 381744AD9 for ; Sat, 14 Aug 2021 12:30:50 +0200 (CEST) Received: from localhost ([::1]:44364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEqwC-0008Vo-1T for larch@yhetil.org; Sat, 14 Aug 2021 06:30:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEqvi-0008Vg-Q5 for emacs-orgmode@gnu.org; Sat, 14 Aug 2021 06:30:18 -0400 Received: from esa04.ucs.mun.ca ([134.153.136.24]:23163) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEqvg-0006jw-E2 for emacs-orgmode@gnu.org; Sat, 14 Aug 2021 06:30:17 -0400 IronPort-SDR: 8dqRxAN+1gwN3RLE9KRqzlBLWJLqqUY4Q495UZ8mW5wpdjGDGqjcrymghba/cgmy7lee1OFkBi Tv20fZUWw7y69qR/z0TzPklklTFj0F1RmS3gQrf8QADyFX+JLfSTIGmuEbCO1kkObgRbAnwPsa SJVGMwn6dW3AzMfX4OQ/I/OUImchaWDJFjVpJHKPNiUUP84AxQWwq72I4T7+mGxoS/d5Rqe4Sv I/6ZKlIWnoaPrBiclnpaFw/VQWzmNrult43oZg+neQtIORimfI1/ojCZTxtAS+6N51aAHJ+3kT zY4= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3ATAPMIKOhyHPlFsBcTvujsMiBIKoaSvp037?= =?us-ascii?q?BN7TEVdfU1SL37qynAppUmPHPP5Qo5eHZlgtyYPbnFXHW0z/BICOoqTNSftW?= =?us-ascii?q?vd2FdARbsKhbcKgQeKJ8SUzIFgPMlbH5RWNMf9Fhxzg8r8/WCDeeod/A=3D?= =?us-ascii?q?=3D?= X-IronPort-AV: E=Sophos;i="5.84,321,1620700200"; d="scan'208";a="63750245" 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 smtp04.ucs.mun.ca with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2021 08:00:14 -0330 References: <87czqhieqe.fsf@posteo.net> <87fsvd6zg1.fsf@posteo.net> User-agent: mu4e 1.5.6; emacs 27.2 From: Roger Mason To: orgmode Subject: Re: return column from table as a column In-reply-to: <87fsvd6zg1.fsf@posteo.net> Date: Sat, 14 Aug 2021 08:00:11 -0230 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=134.153.136.24; envelope-from=rmason@mun.ca; helo=esa04.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=1628937050; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=YQpLg1Dg4Qf+ddD9COwySsyHr7hGIaiiOMpDlBO/Z74=; b=pYb9HtI9JARWaFo3QL40RP0s1NvWf53bs4fPHzUaTT+IVreKI7eMlrQdz9O3+CfPXy8qSD 64jzbK53Tk6ljnrwi4M4WqDdQj5KM/qOxj9wM76u9m4/FivuGKUMQ2zFlS4s+IvW/m5rF5 +wc4fZVmLOROAf21cLooyAujVDuRcPGudu3rj5De0cNllhX+d9PWJCprUlxVnCzXG2kQ74 L8XxIMDi5KQHkzxLwAKslFKCAils6eeb41QgE9UilQs/CMr0WTuGJ39vOIsozxoQlp6gt2 uXI8cenFqepLT2FHoEKDyvOdSxOI7PHmzaU/0ENcbAHDWRvebGp4b0ev0xxDUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628937050; a=rsa-sha256; cv=none; b=jFPwZFfpo4NZO6xRsVNgkzvp8SaPvPHoS6VN+8Uq86ZhpUJJyyjAd9mKJFzVMJhLXbD03O jg1Gkt4tgX4Xx66KABNyyL7fso8PdpWVrflpPrUfQ36F33JV1e/CJ9GZHzzllYMbxqAkqX hZ1QEi4Yfvb0b1i2HnKJvtpk+CbgP9ACkqyEprUuqVJhdB6fi2uTYctGHXUPSQLXIVHArh YmYq/5SFz9iqbt7NL3Ti9rGkUlFCdE8/aX/V3Zp4mbsJu8aKUv/TqKDekDT5kvh4ySI3c3 V0qzQCJzQDVlRAYcYbshPT15zakHotZh5oHgJcMbLxZVOTFUtRca0EV9SDOdeA== 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.41 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: 381744AD9 X-Spam-Score: -2.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: rJ77pJyziN/n Hello Juan, Juan Manuel Mac=C3=ADas writes: > You're welcome. Just a minor fix: although the code works fine, > naturally the asterisk in `let' was unnecessary. This is a new version > with the code explained, in case you find it useful: > > #+begin_src emacs-lisp :var data=3Ds1 col=3D3 > (let* ( > ;; return a list from elemens in column number `col' > (list-from-column (mapcar (lambda (r) (format "%s" (nth col r))) data)) > ;; make a list of lists =3D a new table that contains one single column > (new-table (mapcar 'list list-from-column))) > new-table) > #+end_src Many thanks for this. A looong time ago I was capable of programming in emacs-lisp. Alas I have not maintained my skills. Best wishes, Roger