[Rd] Enlightenment sought and a possible buglet in vector.Rd

2005-12-02 Thread Berwin A Turlach
Dear all, First, I recently had reasons to read the help page of as.vector() and noticed in the example section the following example: x - c(a = 1, b = 2) is.vector(x) as.vector(x) all.equal(x, as.vector(x)) ## FALSE However, in all versions of R in which I executed this

Re: [Rd] Enlightenment sought and a possible buglet in vector.Rd

2005-12-02 Thread Prof Brian Ripley
On Fri, 2 Dec 2005, Berwin A Turlach wrote: [...] The second behaviour that I cannot explain was produced by code written by somebody else, namely: foo function(x){ z - x/4 while( abs(z*z*z-x) 1e-10 ){ z - (2*z+x/z^2)/3 } } The