>>>>> Duncan Murdoch writes:

Thanks, fixed now.

Best
-k

> In section "3.4.4 Subset assignment", the manual says this:
>> Complex assignments in the enclosing environment (using <<-) are also 
>> permitted:
>> 
>> names(x)[3] <<- "Three"
>> is equivalent to
>> 
>> `*tmp*` <<- get(x, envir=parent.env(), inherits=TRUE)
>> names(`*tmp*`)[3] <- "Three"
>> x <<- `*tmp*`
>> rm(`*tmp*`)

> I think there are two typos here in the first line.  I'm pretty sure 
> that it should read

>      `*tmp*` <- get("x", envir=parent.env(), inherits=TRUE)

> i.e. regular assignment, and quoted variable name.

> Duncan Murdoch

> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to