From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Using #+NAME for single value, not table? Date: Fri, 27 Jun 2014 11:51:34 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Sop-0006vv-8g for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 05:51:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0Soj-0001Ug-MQ for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 05:51:43 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:49230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Soj-0001UO-G3 for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 05:51:37 -0400 Received: by mail-we0-f181.google.com with SMTP id q59so5100061wes.12 for ; Fri, 27 Jun 2014 02:51:36 -0700 (PDT) In-Reply-To: (Thomas S. Dye's message of "Thu, 26 Jun 2014 07:13:16 -1000") 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: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable tsd@tsdye.com (Thomas S. Dye) writes: > 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 | co= lor | >> |---------+-----------------+-----------+---------+-----------------+---= ----| >> | fagus | Fagus sylvatica | fagus | 4 | fagus_sylvatica | re= d | >> | quercus | Quercus robur | quercus | 3 | quercus_robur | gr= een | >> >> *** Random Number Definition >> Defines random number generator kind, normal.kind and seed (see set.seed= help in R for details) >> #+NAME: RNGSEED=20 >> 13 >> >> SPECIES works, but how do I get RNGSEED to be 13? > > Perhaps you could wrap it in a source code block? Thanks - yes, I could do that, but then it is not equivalent to a table, as I have to use VARIABLEVALUE() and for a table VARIABLETABLE. I actually wanted to get rid of this inconsistencies. I could obviously define an R source code block to return the table defined before in org, but this is not nice at all... Cheers, Rainer > > #+name: rngseed > #+begin_src R > 13 > #+end_src > > #+results: rngseed > : 13 > #+header: :var x=3Drngseed() > #+begin_src R > x + 1 > #+end_src > > #+results: > : 14 > > hth, > Tom =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJTrT6mAAoJENvXNx4PUvmCsuQH/Ai7sp8gi+8Hm+sfArvf29Zh Wo3S1qTcDhOetXRdfIXYCE34KGcaq63KogNCvylfqEkPdHtcWoFABGOxvT1QV7/N s67BmEn8p7pLsQ66+YjfnKHhEi+b20EJvX6l1CGx3iC6nngXDfoL5y178wsuaZmc lw9jLGhFUOu5Usv3UoqA7Tj7l19oEJy+dKBN4F7kKKEe6/qusx+UsNT39MhQwdu1 H6/mSA4v4NjgTqdQwVQ1p9ONuogqLa6niAYHMO0noynhhJ6t7tVo/sk35zJ7kT+w T9qjiu5Ss+rqP5Aep1oOKIvqvN5yEMnXofI0I10T/3Q5Br1AeIrhN/eOQIhQ+9k= =UiI7 -----END PGP SIGNATURE----- --=-=-=--