[R] number formatting

Laura Holt lauraholt_983 at hotmail.com
Mon Feb 28 20:42:57 CET 2005


Dear R People:

I have used the command round(x,3) to produce values with 3 places to the 
right of the decimal.

Is there any command to remove the leading zero before the decimal point, 
please:  that is, if I have 0.375, how do I produce just .375, please?

Thanks in advance
R 2.0.1 for Windows

Sincerely,
Laura Holt
mailto: lauraholt_983 at hotmail.com




More information about the R-help mailing list