emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Rainer M Krug <Rainer@krugs.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Using #+NAME for single value, not table?
Date: Thu, 26 Jun 2014 07:13:16 -1000	[thread overview]
Message-ID: <m2zjgzoaqb.fsf@tsdye.com> (raw)
In-Reply-To: <m2r42bj1p9.fsf@krugs.de> (Rainer M. Krug's message of "Thu, 26 Jun 2014 14:27:14 +0200")

Aloha Rainer,

Rainer M Krug <Rainer@krugs.de> 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

  reply	other threads:[~2014-06-26 17:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26 12:27 Using #+NAME for single value, not table? Rainer M Krug
2014-06-26 17:13 ` Thomas S. Dye [this message]
2014-06-27  9:51   ` Rainer M Krug
2014-06-27 15:10     ` Nick Dokos
2014-06-27 17:38 ` Aaron Ecay
2014-06-27 18:35   ` Grant Rettke
2014-06-30  7:03   ` Rainer M Krug
2014-07-25 14:48     ` Sebastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2zjgzoaqb.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=Rainer@krugs.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).