From: Dan Davison <davison@stats.ox.ac.uk>
To: Graham Smith <myotisone@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] multiple result outputs from function
Date: Tue, 16 Mar 2010 15:26:05 -0400 [thread overview]
Message-ID: <87eijknk4y.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <2c75873c1003161153j307e1441g17b02369df0c7a95@mail.gmail.com> (Graham Smith's message of "Tue, 16 Mar 2010 18:53:13 +0000")
Graham Smith <myotisone@gmail.com> writes:
> Erik
>
>> So, add ":results output" to your source header block.
>
> Dan beat you to it, but..
>
>> list(xbar, lower.ci, upper.ci)
>
> This is useful, but the output isn't exactly as I expected
>
> #+results: SumFlowering2005
> : [[1]]
> : [1] 1.513333
> :
> : [[2]]
> : [1] 1.048065
> :
> : [[3]]
> : [1] 1.978602
>
> is there a way of replacing the [1] [2] and [3] with the object names
I think you meant replacing the [[1]], [[2]], [[3]]. That would be
list(myname1=xbar, myname2=lower.ci, myname3=upper.ci)
> (I know this is really an R question)
yep :)
Dan
>
> Thanks,
>
> Graham
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-03-16 19:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-16 18:26 [babel] multiple result outputs from function Graham Smith
2010-03-16 18:35 ` Dan Davison
2010-03-16 18:43 ` Graham Smith
2010-03-16 18:39 ` Erik Iverson
2010-03-16 18:53 ` Graham Smith
2010-03-16 19:26 ` Dan Davison [this message]
2010-03-16 19:38 ` Graham Smith
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=87eijknk4y.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=myotisone@gmail.com \
/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).