[Rd] Modifying a list: what gets copied?

Kohske Takahashi takahashi.kohske at gmail.com
Sat Jul 14 03:23:50 CEST 2012

> list_u <- function(x) z$a <- 1L

Note that the argument name is `x` while you are using `z` inside the function.
I'm not sure if this is the reason, though.


Kohske Takahashi <takahashi.kohske at gmail.com>

Assistant Professor,
Research Center for Advanced Science and Technology,
The University of  Tokyo, Japan.

More information about the R-devel mailing list