On Tue, 22 Nov 2022 08:15:57 +0800
"Steven T. Yen" <st...@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,
Ivan

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to