Is putting a variable into a list a deep copy (and is tracemem the
correct way to confirm)?

warmstrong@krypton:~/dvl/R.packages$ R
> x <- rnorm(1000)
> tracemem(x)
[1] "<0x3214c90>"
> x.list <- list(x.in.list=x)
tracemem[0x3214c90 -> 0x2af0a20]:
>

Is it possible to put a variable into a list without causing a deep
copy (i.e. if you _really_ want the objects to share the same
underlying memory)?

-Whit

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to