From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jay Kerns Subject: Re: formatting org-babel output Date: Wed, 22 May 2013 09:14:18 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf8sO-0007eW-Ax for emacs-orgmode@gnu.org; Wed, 22 May 2013 09:14:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf8sJ-0006c8-Jv for emacs-orgmode@gnu.org; Wed, 22 May 2013 09:14:44 -0400 Received: from mail-qa0-x22b.google.com ([2607:f8b0:400d:c00::22b]:50721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf8sJ-0006bu-Fo for emacs-orgmode@gnu.org; Wed, 22 May 2013 09:14:39 -0400 Received: by mail-qa0-f43.google.com with SMTP id j11so2804421qag.16 for ; Wed, 22 May 2013 06:14:38 -0700 (PDT) In-Reply-To: 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: Joe Bogner Cc: emacs-orgmode@gnu.org Hi Joe, On Wed, May 22, 2013 at 7:18 AM, Joe Bogner wrote: > I am using org-mode and babel with R for reproducible research. I > would like certain numbers in the output tables to be formatted for > easier reading - such as eliminating decimals and adding commas for > readability. > [snip] Have you considered doing your formatting in R before it ever gets to the org table? The format function is very powerful. For instance, > format(163328361.2423, nsmall = 2, big.mark =",") [1] "163,328,361.24" Just an idea. -- Jay