Displaying 1 result from an estimated 1 matches for "345700".
Did you mean:
45700
2006 Sep 14
1
digits in summary.default
...ger data of magnitude greater than 10^3 the command summary
will produce heavily rounded results.
A simple example follow:
> x <- c(123456,234567,345678)
> x
[1] 123456 234567 345678
> summary(x)
Min. 1st Qu. Median Mean 3rd Qu. Max.
123500 179000 234600 234600 290100 345700
# quite different from
> quantile(x)
0% 25% 50% 75% 100%
123456.0 179011.5 234567.0 290122.5 345678.0
Is it possible to adapt the number of significant digits to the
magnitude of the data?
The first thing that comes into my mind is
digits = nchar(trunc(max(x))) #...