Re: [Rd] Strange behavior of pretty

2007-11-04 Thread Prof Brian Ripley
On Sat, 3 Nov 2007, Duncan Murdoch wrote: On 03/11/2007 4:34 PM, Ulrike Grömping wrote: Dear all, I got stuck with a weird behavior of pretty: pretty(c(-1,1),n=1) yields -2, 0, 2 instead of the desired result -1 1. Likewise, pretty(c(-2,2),n=1) yields -5, 0, 5 instead of the desired re

Re: [Rd] Strange behavior of pretty

2007-11-03 Thread Duncan Murdoch
On 03/11/2007 4:34 PM, Ulrike Grömping wrote: > Dear all, > > I got stuck with a weird behavior of pretty: > pretty(c(-1,1),n=1) > yields -2, 0, 2 instead of the desired result -1 1. > Likewise, > pretty(c(-2,2),n=1) > yields -5, 0, 5 instead of the desired result -2 2. I don't think pre

[Rd] Strange behavior of pretty

2007-11-03 Thread Ulrike Grömping
Dear all, I got stuck with a weird behavior of pretty: pretty(c(-1,1),n=1) yields -2, 0, 2 instead of the desired result -1 1. Likewise, pretty(c(-2,2),n=1) yields -5, 0, 5 instead of the desired result -2 2. With n=0, the result is the same, while with n=2 everything is as documented.