Skip to content
Prev 168158 / 398503 Next

strip leading 0's

Thanks for the suggestion replacing the leading 0 with a space instead
of nothing to preserve the layout, and for explaining why there is no
option for this.

Yes, I see why this sounds like a bad idea. The reason I asked is that
I use Sweave to write statistical reports, and I like to get the
formatting as close as possible without editing the .tex file
afterward. In my field (psychology) it is standard practice to omit
the leading zeros when reporting statistics whose value cannot exceed
1, mainly correlations and p values.

Thanks,
Ista
On Sun, Jan 25, 2009 at 2:39 AM, Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote: