From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UL49MS1MsmArwAAAgWs5BA (envelope-from ) for ; Sat, 29 May 2021 16:14:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QON4LC1MsmDLOwAAB5/wlQ (envelope-from ) for ; Sat, 29 May 2021 14:14:05 +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 40B0A21254 for ; Sat, 29 May 2021 16:14:05 +0200 (CEST) Received: from localhost ([::1]:37630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmzj2-0006YF-25 for larch@yhetil.org; Sat, 29 May 2021 10:14:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmzif-0006VQ-Hr for emacs-orgmode@gnu.org; Sat, 29 May 2021 10:13:41 -0400 Received: from esa04.ucs.mun.ca ([134.153.136.24]:55993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmzid-0002T3-KW for emacs-orgmode@gnu.org; Sat, 29 May 2021 10:13:41 -0400 IronPort-SDR: VRvlqNBwGxE4j6WehRrlK4k+idofz7tEXsUHKjwzB7oOUBmf7+QKSubYeX86i9S/PMuKqRSF63 LRBQZiraX+jnDRuMAfN0fotuycl9ITWxPKvGt3uYtO9ioufqouI/zsOHciwjaBFsSloacQw1FK rRDeOonFX+HZfR56pEguUQjUOX4+U035uzPX/7/V6/dVfuhBq44TlaQD4tW9mkdbeMX49ExjVZ IF3D/XJrIqSfzZZf+Ztoh26ykl5/qMYJaOFFLgJJXeg7dWwWfmHs5OorLGROGFVP6lVNo80KSs R4s= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AC3QVIKu0v+33F3BZY3i+kOvi7skDctV00z?= =?us-ascii?q?EX/kB9WHVpm62j5qKTdZsgtCMc5Ax9ZFgBnpSaNLCEUTfA8/dOj7X5Xo3SPz?= =?us-ascii?q?UO2lHJEGgK1+KL/9SjIUbDH4VmupuIHZITNPTNF1Rgyc717A6keuxL/OW6?= X-IronPort-AV: E=Sophos;i="5.83,233,1616466600"; d="scan'208";a="59074936" 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; 29 May 2021 11:43:37 -0330 References: User-agent: mu4e 1.5.6; emacs 27.2 From: Roger Mason To: "emacs-orgmode@gnu.org" Subject: Re: Passing a variable into an R source block. In-reply-to: Date: Sat, 29 May 2021 11:43:33 -0230 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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=1622297645; 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=sTGIs3YjNFH81TArYofpRbJIqhONCVSyoPBb608087A=; b=b7DKUBLnzdUOrKCzlPl9BiCRdS3qrbN0UW3yTA6I+GFCXhmaIkDbMbS9E9sKaXhHIHCIL8 fPCTkFKKLZdnA+79Fwq7DZjB7cpfCiKX+9reuI4WdhNM+Ws12fUEZ+ivTZRDuC24dCqUTI e6+I9nLcU0SKz2n6HGIZ4CIUfVhpfiUPkWD0aWZQi2tcmdUHDdhwIm9Xf/RBBLxGCJ5ScQ kSwct2Q+7RYEtrYGxqt6OTVR/EZuYc3KLKKJ1un3Qf+dI5Of1pOSEpdJXp7N4y7w/xXGYC LG4HvzUMcjCsFg6/Oiy3bSul2d162xj8P9whracP5dchHhOKEV5FIFKoXpUcmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622297645; a=rsa-sha256; cv=none; b=jC1S8i6wfOnYF+0fPeUF541YQn4zTK33/ziktd5lL5OFnNmIAWcjbm5MyiqcwyWnhxltrE PdyS5XtvAFiWBU5FXw3sTZGfujrp7dCR91EpfqE/tqKFMVd/qlZFbSpssKDk5tyRp0kWvh f1l+h7wWCHby19WSKouuQ4fxDXV3tHOU4HAw03zWqIoGyxpcl34kqkH3x9Oc928jEcUoYk 9IyfWcNQcvm3cc0lUU6SLn9PfsCsc88aO+C3PhXbDmoLZuD8Bj4+3zqwrknqFeIGFmmaWS WRHzqy2H5GbNNq5j97vgOrqADJT74hiSxAOzRr2X4e7RfTjaYl5eYjovMhIULg== 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: 40B0A21254 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: zM3wmHBS+R7p Hello Charles & William, Berry, Charles writes: > data.frame($data) is not valid R syntax. If you are new to R doing some tutorials will help. > > I suggest you use C-c C-v C-v (org-babel-expand-src-block) to see what the R code is and debug the result given in the the *Org Babel Preview...* buffer. You are correct, my R skills are _very_ rusty. I did not know of org-babel-expand-src-block, thanks for the pointer. Very useful. William Denton writes: > The Org table is passed in to R as a data.frame, so all you need is this at the > start (with stringr loaded in previously): Thanks William, that got me going in the right direction. Roger