G'day Brian,
> "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> writes:
>> I found in the R language definition manual the passage that
>> discourages users of assigning objects within function calls
>> since it is not guaranteed that the assignment is ever made
>> because of R'
G'day Brian,
> "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> writes:
BDR> 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:
[...]
>> The documentation of function() sa
On Fri, 2 Dec 2005, Berwin A Turlach wrote:
> Secondly, I stumbled across two behaviours of R that I cannot explain
> but would like to know why R behaves as it does. But since I expect
> the explanations to be quite technical, I though that r-devel is the
> more appropriate list to ask on than r
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
> }
>
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 exa