From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: NA in R source code block Date: Sat, 31 Mar 2018 13:27:09 +0530 Message-ID: References: <87h8owlp0r.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2BO2-0002KZ-6g for emacs-orgmode@gnu.org; Sat, 31 Mar 2018 03:57:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f2BO1-000475-Dl for emacs-orgmode@gnu.org; Sat, 31 Mar 2018 03:57:18 -0400 Received: from mail-it0-x231.google.com ([2607:f8b0:4001:c0b::231]:38345) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f2BO1-00046p-7G for emacs-orgmode@gnu.org; Sat, 31 Mar 2018 03:57:17 -0400 Received: by mail-it0-x231.google.com with SMTP id 19-v6so13459647itw.3 for ; Sat, 31 Mar 2018 00:57:16 -0700 (PDT) In-Reply-To: <87h8owlp0r.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Jeremie Juste , org-mode mailing list >=20 >> NAs in a data frame that is created by an R source code block show up = in the results as nil. Can I change it to something else (say, = =E2=80=9C=E2=80=94=E2=80=9C)? >=20 > Could you elaborate on your issue? Can you give a minimal example of > your block? It is very difficult to help with the information you = gave. >=20 Hi and Greetings! And apologies if my previous mail sounded rude. That = was surely not my intent. Here is an example. The NA in column a shows up in the results as nil. = Why does that happen? Is there a way of changing this behaviour? I can = manually replace NA with something else, but doing that in each code = block is a pain. Since I wrote my first mail, I have written an export = filter that filters out each =E2=80=9Cnil=E2=80=9D at the time of export = and replaces it with a =E2=80=9C---=E2=80=9C. But that is not perhaps = the most efficient way of doing it. Warmly, Vikas ----------- #+NAME: test #+BEGIN_SRC R :results value :exports results :colnames yes :hline yes data.frame(a=3Dc(1,2,NA),b=3Dc("john","dan","marco")) #+END_SRC #+RESULTS: test | a | b | |-----+-------| | 1 | john | | 2 | dan | | nil | marco |