[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-babel's treatment of NA in R source block
From: |
Thomas S. Dye |
Subject: |
Re: [O] org-babel's treatment of NA in R source block |
Date: |
Mon, 01 Oct 2012 13:10:22 -1000 |
Vikas Rawal <address@hidden> 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