From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Using #+NAME for single value, not table? Date: Thu, 26 Jun 2014 07:13:16 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0DEz-0000VF-RR for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 13:13:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0DEq-0002kw-Hz for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 13:13:41 -0400 Received: from gproxy8-pub.mail.unifiedlayer.com ([67.222.33.93]:42782) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1X0DEq-0002kO-5G for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 13:13:32 -0400 In-Reply-To: (Rainer M. Krug's message of "Thu, 26 Jun 2014 14:27:14 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: emacs-orgmode@gnu.org Aloha Rainer, Rainer M Krug writes: > Hi > > I use #+NAME to define some parameters for my analysis, which works > quite nice for tables. but I would now like to use the same apprioach > for values, e.g. a single number, but I don't manage. Is this possible? > For illustration a short example: > > *** Species names and iespece codes > #+NAME: SPECIES > | | fullName | shortName | iespece | IFNName | color | > |---------+-----------------+-----------+---------+-----------------+-------| > | fagus | Fagus sylvatica | fagus | 4 | fagus_sylvatica | red | > | quercus | Quercus robur | quercus | 3 | quercus_robur | green | > > *** Random Number Definition > Defines random number generator kind, normal.kind and seed (see set.seed help in R for details) > #+NAME: RNGSEED > 13 > > SPECIES works, but how do I get RNGSEED to be 13? Perhaps you could wrap it in a source code block? #+name: rngseed #+begin_src R 13 #+end_src #+results: rngseed : 13 #+header: :var x=rngseed() #+begin_src R x + 1 #+end_src #+results: : 14 hth, Tom -- Thomas S. Dye http://www.tsdye.com