Re: [R] Rounding a Measurement to be Consistent with its Uncertainty

2009-12-05 Thread Tom La Bone
Uwe Ligges-3 wrote: > > > > Tom La Bone wrote: >> I have a measurement of 8165.666 and an uncertainty of 338.9741 (the >> units of >> both are unimportant). I can easily round the uncertainty to two >> significant >> digits with signif(338.9741,2), which gives 340. Is there a function in R >>

Re: [R] Rounding a Measurement to be Consistent with its Uncertainty

2009-12-05 Thread Uwe Ligges
Tom La Bone wrote: I have a measurement of 8165.666 and an uncertainty of 338.9741 (the units of both are unimportant). I can easily round the uncertainty to two significant digits with signif(338.9741,2), which gives 340. Is there a function in R that will take 8165.666 and round it to be cons

[R] Rounding a Measurement to be Consistent with its Uncertainty

2009-12-03 Thread Tom La Bone
I have a measurement of 8165.666 and an uncertainty of 338.9741 (the units of both are unimportant). I can easily round the uncertainty to two significant digits with signif(338.9741,2), which gives 340. Is there a function in R that will take 8165.666 and round it to be consistent with its uncert