[R] round function seems to produce maximum 2 decimals

2009-05-20 Thread Glenn E Stauffer
I am trying to use round()to force R to display a specific number of decimals, but it seems to display =2 decimals no matter what I specify in the digits argument. As an alternative I tried signif(), but it also produces unexpected results. See example code and results below. Format() works, but

Re: [R] round function seems to produce maximum 2 decimals

2009-05-20 Thread Ted Harding
On 20-May-09 20:10:15, Glenn E Stauffer wrote: I am trying to use round()to force R to display a specific number of decimals, but it seems to display =2 decimals no matter what I specify in the digits argument. As an alternative I tried signif(), but it also produces unexpected results. See

Re: [R] round function seems to produce maximum 2 decimals

2009-05-20 Thread Ben Bolker
Glenn E Stauffer wrote: I am trying to use round()to force R to display a specific number of decimals, but it seems to display =2 decimals no matter what I specify in the digits argument. As an alternative I tried signif(), but it also produces unexpected results. See example code and