Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] number formatting

Laura Holt

2005-02-28


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@(protected)

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.