Den 2024-07-30 kl. 17:09, skrev Jorgen Harmse:
Duncan Murdoch answered your question, but I have another. Are you
going to do some computation with the rounded numbers,

Wouldn't dream of it.

or are they just for display?

Yes.

G,

(One thing I like about Excel is that I can change
the display format of a cell without changing answers that depend on
that cell.) In the latter case, why stash them in a variable? For
more control of the display, consider sprintf (or a wrapper that
combines sprintf with cat).

Regards,

Jorgen Harmse.


______________________________________________
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