Skip to content
Prev 20475 / 63421 Next

format.info() versus format.default(): Comments please

format.info() is used in no CRAN package (except in lists of known 
functions) and nowhere in R itself so I think you could do whatever you 
wanted by way of extending it.  However, I don't think it going to be 
easy, as apart from scientific those arguments are handled via 
postprocessing by prettyNum.

I would be tempted to replace format.info by a function that analysed the 
results.  The current description is wrong, of course:
[1] 6 0 0
[1] "123,456"

There are also assumptions that digits and the decimal mark are of width 
one, but those are I think benign.
On Mon, 1 May 2006, Duncan Murdoch wrote: