[R] controlling printing precision in paste()

Sean Davis sdavis2 at mail.nih.gov
Fri Sep 17 15:38:40 CEST 2004


Look at ?format.


On Sep 17, 2004, at 9:21 AM, RenE J.V. Bertin wrote:

> Hello,
> I can't seem to find the way to modify the precision with which 
> paste() prints its floating point numbers, more precisely the number 
> of decimal digits printed. This is apparently not controlled by 
> options( digits= ), and there is no appropriate argument to paste() 
> itself.
> Is this possible, and if so, how? Does one have to use round() for all 
> individual arguments, or is there a more global approach?
> Thanks,
> RenE Bertin
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html

More information about the R-help mailing list