From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: org-babel's treatment of NA in R source block Date: Tue, 02 Oct 2012 21:40:41 -1000 Message-ID: References: <20121001225459.GA19395@panahar> <20121003071620.GA11903@panahar> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJJZa-0006un-N3 for emacs-orgmode@gnu.org; Wed, 03 Oct 2012 03:40:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJJZY-0002UW-TD for emacs-orgmode@gnu.org; Wed, 03 Oct 2012 03:40:50 -0400 Received: from oproxy8-pub.bluehost.com ([69.89.22.20]:36108) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TJJZY-0002SG-HF for emacs-orgmode@gnu.org; Wed, 03 Oct 2012 03:40:48 -0400 Received: from [24.94.67.12] (port=49887 helo=poto.myhome.westell.com) by box472.bluehost.com with esmtpa (Exim 4.76) (envelope-from ) id 1TJJZT-0005ZV-NJ for emacs-orgmode@gnu.org; Wed, 03 Oct 2012 01:40:45 -0600 In-Reply-To: <20121003071620.GA11903@panahar> (Vikas Rawal's message of "Wed, 3 Oct 2012 16:16:20 +0900") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Vikas Rawal 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