emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: org-babel's treatment of NA in R source block
Date: Mon, 01 Oct 2012 13:10:22 -1000	[thread overview]
Message-ID: <m1y5jp6b6p.fsf@poto.westell.com> (raw)
In-Reply-To: <20121001225459.GA19395@panahar> (Vikas Rawal's message of "Tue, 2 Oct 2012 07:54:59 +0900")

Vikas Rawal <vikaslists@agrarianresearch.org> writes:

> If the result of an R source block contains a data frame with NA, the
> NAs are replaced by "nil" when I evaluate the source block. When I
> export the file, these appear as nil in the resulting pdf/latex file. 
>
> 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.

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

  reply	other threads:[~2012-10-01 23:10 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 [this message]
2012-10-03  7:16   ` Vikas Rawal
2012-10-03  7:40     ` Thomas S. Dye

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=m1y5jp6b6p.fsf@poto.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).