[R] howto get significant digits for round()

From: Jonas Stein <news_at_jonasstein.de>
Date: Wed, 14 May 2008 23:31:35 +0200

i have a table like this of an value and its tolerance

length delta-length
12.2232 0.4
123.422 0.034123
1234 12

i want to round the value to the significant digits in this way:


12.2   ,  0.4
123.42 ,  0.03
1234   ,  12

how can i do this with R?

please CC to email,
thanks so far,

Jonas Stein <news_at_jonasstein.de>

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 15 May 2008 - 00:39:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 15 May 2008 - 05:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive