emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: emacs-orgmode@gnu.org
Subject: Re: org-babel's treatment of NA in R source block
Date: Tue, 02 Oct 2012 21:40:41 -1000	[thread overview]
Message-ID: <m1wqz8hukm.fsf@poto.myhome.westell.com> (raw)
In-Reply-To: <20121003071620.GA11903@panahar> (Vikas Rawal's message of "Wed, 3 Oct 2012 16:16:20 +0900")

Vikas Rawal <vikaslists@agrarianresearch.org> writes:

>> >
>> > I would like the NAs to be replaced by blank cells or by a less
>> > obstrusive character like a ".". Is there a simple way I could change
>> > this behaviour?
>> >
>> > Vikas
>> >
>> >
>> Aloha Vikas,
>> 
>> One route might be the ascii package in R, which exports objects to
>> several markup languages, including Org. The ascii() argument na.print
>> is a character string that specifies how NA should appear in the output.
>> 
>
> Thanks. That seems very good.
>
> But if the code block is directly producing org markup, what should I
> tell my parent org file to expect?
>
> My source block began like this:
>
> #+BEGIN_SRC R :results value :colnames yes :hline yes
>
> I would expect this to change now. How do I say that the result is
> already formatted for org?
>
> Vikas
>
>
Does ":results value raw" do what you want?  Another possibility is
":results value org", which changed behavior recently.

All the best,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com

      reply	other threads:[~2012-10-03  7:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-01 22:54 org-babel's treatment of NA in R source block Vikas Rawal
2012-10-01 23:10 ` Thomas S. Dye
2012-10-03  7:16   ` Vikas Rawal
2012-10-03  7:40     ` Thomas S. Dye [this message]

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=m1wqz8hukm.fsf@poto.myhome.westell.com \
    --to=tsd@tsdye.com \
    --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).