From edd at debian.org  Fri Aug 19 18:40:05 2016
From: edd at debian.org (Dirk Eddelbuettel)
Date: Fri, 19 Aug 2016 11:40:05 -0500
Subject: [Rd] summary.default rounding on numeric seems inconsistent
 with other R behaviors
In-Reply-To: <CANcXGiyBrz6d13POfJBLwgtLMUyYe40BwFMfVg0jzGVxY2aUXA@mail.gmail.com>
References: <944E96FB-9C3B-46A3-9C57-8AF8EAA5284A@win-vector.com>
	<CANcXGiyBrz6d13POfJBLwgtLMUyYe40BwFMfVg0jzGVxY2aUXA@mail.gmail.com>
Message-ID: <22455.13925.282926.46662@max.nulle.part>


It is the old story of defined behaviour and expected outcomes. Hard to
change now.

So I would suggest you do something like this in your ~/.Rprofile:

R> smry <- function(...) summary(..., digits=6)
R> smry(155555L)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
 155555  155555  155555  155555  155555  155555
R>

Maybe call it Summary() instead.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



[Rd] summary.default rounding on numeric seems inconsistent with other R behaviors
Dirk Eddelbuettel