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 s/CjDjGoFmHVlQAAgWs5BA (envelope-from ) for ; Fri, 13 Aug 2021 19:13:21 +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 0F/fCTGoFmGYagAA1q6Kng (envelope-from ) for ; Fri, 13 Aug 2021 17:13:21 +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 66D31E0EE for ; Fri, 13 Aug 2021 19:13:20 +0200 (CEST) Received: from localhost ([::1]:43386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEakA-00076f-59 for larch@yhetil.org; Fri, 13 Aug 2021 13:13:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEajm-00076W-9X for emacs-orgmode@gnu.org; Fri, 13 Aug 2021 13:12:54 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEaji-0007CI-3P for emacs-orgmode@gnu.org; Fri, 13 Aug 2021 13:12:54 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D54BA240026 for ; Fri, 13 Aug 2021 19:12:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628874767; bh=w4khi5F8nQyoA97TdA4IRMAYwSpDMJNCpXK4yQidS4M=; h=From:To:Cc:Subject:Date:From; b=bZlp0OZElmyIZ38kLM+DKi1AGajWLefEbuYrLJTGi3j85G0S89Lxm0sGj9A2Q/4bH A3rrpNADy7fMokN/DIb47PANlScdf7afppDOJsZElPpAYCPCfgVDO+piOly1bcH7TG LH0woIKwFRFGyh0ENyAXvlpQm3AkAjuDzb8zFGqjydbzw8KHo4BWWNVJxxd0su2fTQ vw/AxiszKTpm4QEIc34DznEezvHOKqJjeXJj/+mS0v7nB/ol7+A7xLQhGVsQ8I42WB rCxfvcsh3zfBlOSAamPeJCX/UZgj5/AtZl4lA7VuWSMl+YVJOVXHLPWJvYXSH93xkY jfGOykXKU91KQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GmVVl1mptz9rxH; Fri, 13 Aug 2021 19:12:47 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Roger Mason Subject: Re: return column from table as a column References: <87czqhieqe.fsf@posteo.net> Date: Fri, 13 Aug 2021 17:12:46 +0000 In-Reply-To: (Roger Mason's message of "Fri, 13 Aug 2021 14:02:31 -0230") Message-ID: <87fsvd6zg1.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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: , Cc: orgmode 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=1628874800; 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=2Zi7qju9Tb1WLdrU35GUbtFr7oCobFJGpOrqMVmfplQ=; b=CWpJHUp5oCBVL5xSm5hCKRKKJUOLXtjl7gF3SDitTjTkInk1P5ftdM0yci1IkWmPwWPwXw IuyRA3mwzakfszSV5J6MxTKBrwp4IrPRX4VTmegjs4AnAE04vd4SsKgdWTtvZcGqbOrPty Hp5dQQzzyvKcML04nlHjBRlUvWMBgJNFlnt9bOCYZq5bZ+77L8uuF3jZ8NuxcWC3LwwwOw KvOAo6FViuMXySjNxOs8X33WHKUotuo5sX61dQ5xhIfy7jgyaFifXmB7SL428GxCXoGSG8 GL6beGPcBKYnaYsqym0MN2JqLGcIo31yeJ9P608Q7YLCN+kZXfZSBKivLL3kuw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628874800; a=rsa-sha256; cv=none; b=S8JxQVDmPl0rlQ7vIMBf433IScK0BwLRytDV7c+H9+oKNuBthpf+rzLvNJptlWrI0cjRdo MHxcY1dWvYwltz7sfbf+WpjIQKtYxQSWRjVrWSE4kdczTmb8hhoanQrt5f5B4XzDlVkrQl ww1hY9MFZYJp14yaeGHGwUTayE16aKytD93D0wDKvJUUdj3X2DthlK7JzmZIcLxkPWpH/1 tQkWpXycm5S5tfc0CmOxV1I3S+eH/wioeqPfoUgNDZVbMd7kwQf0xWOK36HeOYl49LD1M3 pVfOHu2usNPglkyz2wwnGT4lIn+G9yldGMPrOVd8ATOpQ0/wbPyR1FYS7rN9xQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bZlp0OZE; dmarc=pass (policy=none) header.from=posteo.net; 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: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bZlp0OZE; dmarc=pass (policy=none) header.from=posteo.net; 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: 66D31E0EE X-Spam-Score: -3.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0fopecwr9sKE Hello Roger, Roger Mason writes: > Thank you, I think I may be able to get this to work. 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=s1 col=3 (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 = a new table that contains one single column (new-table (mapcar 'list list-from-column))) new-table) #+end_src Regards, Juan Manuel