[R] Format printing with R

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Tue Nov 22 08:08:52 CET 2022

On Tue, 22 Nov 2022 08:15:57 +0800
"Steven T. Yen" <styen using ntu.edu.tw> wrote:

> Thanks to all, but no, signif() did not work:

It worked, just didn't do what you wanted it to do. I think you want
round(), not signif(). Some of your numbers (45.3185794) will be rounded
to 4 significant digits and others (0.0969999) will be rounded to 1
significant digit, but the number of decimal places will be 2.

Best regards,

More information about the R-help mailing list