From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qA83B/46mWPFYgAAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 03:54:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YMxeBv46mWMU5QAAG6o9tA (envelope-from ) for ; Wed, 14 Dec 2022 03:54:54 +0100 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 E20733A62C for ; Wed, 14 Dec 2022 03:54:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5HuF-0004vo-A8; Tue, 13 Dec 2022 21:54:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5HuD-0004sb-64 for emacs-orgmode@gnu.org; Tue, 13 Dec 2022 21:54:01 -0500 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.217.159.240] helo=upwardly-mabon.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5HuB-0005Wy-LW; Tue, 13 Dec 2022 21:54:00 -0500 Received: from warm-leshyi.authn-relay.a.mail.umich.edu (ip-10-0-74-131.us-east-2.compute.internal [10.0.74.131]) by upwardly-mabon.relay-egress.a.mail.umich.edu with ESMTPS id 63993AC1.6CA982B.626A5CE8.53584; Tue, 13 Dec 2022 21:53:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1670986432; bh=TamHxAtfUZ3zX1SroS9cLt7rpUauE3W7U+YumMgW5hY=; h=To:cc:From:Subject:In-reply-to:References:Date; b=QAuZTdLydtQ25HGfp8FzidBhl3ORN8eA4B23Dzff/kb9Ygki6MufkhiVKWx7z/uRy L5rQbpBH8W/TE92xLy3hOJutDhFnOYYZMs+As+Neo0pVcbLPrlB6aGF1g+Bciw+Hg4 sRDSVGih9eTpM2ia7u6rsqIkqT794yyainzh7jCeQFFBNwnLqtRqz6OQTgJ2vdDXrd k1zF8/Nx2OW5HxUFEOnR/jh9Z9lkFNRdiyxdFeZNEnk70Wu+H3SS6XRlaZSBOQ/OEH F+5khUqzEhSWbNxNSSpCwInI6iphgaQOg2ORwTxJk+H64oG2dQublh5VWyN33FWv0T ckCo9jK5VR19A== Received: from localhost (Mismatch [85.103.58.9]) by warm-leshyi.authn-relay.a.mail.umich.edu with ESMTPSA id 63993ABE.208DF1E8.613C71A9.3255121; Tue, 13 Dec 2022 21:53:51 -0500 To: Johan =?utf-8?Q?Tol=C3=B6?= cc: Ihor Radchenko , Jeremie Juste , Bastien , emacs-orgmode@gnu.org, "Berry, Charles" From: Greg Minshall Subject: Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)] In-reply-to: <87tu1zv2g0.fsf@toloe.se> References: <87wn77mdvk.fsf@toloe.se> <766358.1670208594@archlinux> <87wn74xjv7.fsf@gmail.com> <87bkofh0ir.fsf@localhost> <87sfhqudks.fsf@gmail.com> <87edtantzq.fsf@localhost> <87k02yq7mz.fsf@gmail.com> <87h6y1hs2m.fsf@localhost> <1439157.1670847443@archlinux> <87tu1zv2g0.fsf@toloe.se> Comments: In-reply-to Johan =?utf-8?Q?Tol=C3=B6?= message dated "Tue, 13 Dec 2022 14:29:44 +0100." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1.91 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1519596.1670986425.1@archlinux> Date: Wed, 14 Dec 2022 05:53:45 +0300 Message-ID: <1519597.1670986425@archlinux> Received-SPF: pass client-ip=18.217.159.240; envelope-from=minshall@umich.edu; helo=upwardly-mabon.relay-egress.a.mail.umich.edu X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670986493; 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=TamHxAtfUZ3zX1SroS9cLt7rpUauE3W7U+YumMgW5hY=; b=n6ClNThuZr3ogYhv7KHjyzrlTGaScJAY6qlzByJ6N3CzlpUnCGsLIsRTebfUjkzQ/4xy+E Q+L4oQTfqT1PTyAmwLr4UfR8bEW2MuCmSmkdlJo1Z9C1KA63lb6u+Oe567o65Zt8XVxzHM akb/4Z58GHNtUkWJiZLN89a/jptOENhcbTGZv0LDlgIte7aw3UhZk3qUvSmM0cMEBTIWQT tY1VAzPBMbmskOlXKNO9KWvwUwFC0nQYCcgvoUVDq4R8vVw7u/jmaQP3403R0ceehavn1+ 3IRaA5nCdVrqjM2snJrSQm7rMazOSLstyi+H5Go5th8xg0SHX0O/s2flrLyXVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=QAuZTdLy; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=umich.edu ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670986493; a=rsa-sha256; cv=none; b=Z70BIwpZLK/T5d/Nn2ZNJGpow0+u8dTEofmEz6iWaUThBr6LzuNoRpd5FWKT4Tq408iCe2 1RlGsbHvtKdBu7MLhBVkp6Z3wzgD0HTd2KyG8PZsMSV/QI4n4PgtYT/yzSM+vN7Vqz1bYv hKREdo5hMbmLvViZz8eujVAYh45WSrlnp8tYxp2fxKeFCOfWeihFSDI81fftK/r89kOoi7 zwIj211eoysRzgb1OOB1IjZn+2cWubbk1pl08kOmoeThU88Z2h27QNVbg4lcHJyRbQd2Cv vbJbnnF93aUbEPEsr0GsZ5cc1oES87cmNZhfSSdjHSpPK0sZJAN/1zWnZOczJg== X-Migadu-Spam-Score: -4.98 X-Spam-Score: -4.98 X-Migadu-Queue-Id: E20733A62C X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=QAuZTdLy; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=umich.edu X-TUID: APX6vOsI3kmZ hi, Johan, > "Proper list" in the context of this discussion and pertaining to R > would be a =list()=, not a vector which is what is usually returned by > =c()=. A =data.frame()= is a special case of a =list()= where every > column has to have the same length. well, it's a language mapping problem. what one considers a "list" in org-mode is - well - something like - this - maybe with - this whereas in e-lisp, '("well" "something like" '("this" '("maybe with" "this"))). then, the question arises of how to translate something like that to whatever data structures a given programming language offers. it *might* be to something that programming language calls a "list". if we are ignoring "sub lists", then for R, one could argue either vectors or lists. (someone -- possibly you? -- pointed out that going from an R list to a vector is as simple as an unlist() call.) if we ever want to provide support for sub lists, then passing lists as R lists seems like the way to go. cheers, Greg ---- > list("well", "something like", list("this", list("maybe with"))) [[1]] [1] "well" [[2]] [1] "something like" [[3]] [[3]][[1]] [1] "this" [[3]][[2]] [[3]][[2]][[1]] [1] "maybe with" > unlist(list("well", "something like", list("this", list("maybe with")))) [1] "well" "something like" "this" "maybe with"