-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
Description
Consider this console session:
> library(errors)
> options(errors.notation="plus-minus", errors.digits=2, digits=2)
> v1 = 0.555 ; errors(v1) = 0.0555555555
> v2 = 0.44444444 ; errors(v2) = 0 ## Note that we have zero errors on v2
> v3 = 0.333 ; errors(v3) = 0.0333
> v = c(v1, v2, v3)
> v
errors: 0.0555555555 0 0.0333 ## Display not honoring errors.digits=2
[1] 0.56 0.44 0.33 ## Correctly honoring digits=2
> data.frame(v)
v
1 0.555 +/- 0.056 ## Correct
2 0.44444444 +/- 0 ## value should be printed as 0.44
3 0.333 +/- 0.033 ## Correct
>
What do you think?