Displaying 1 result from an estimated 1 matches for "tp2281802p2281802".
2010 Jul 08
2
pass-by-reference
...rame()
v1 <- get("v1",envir=frame)
v1[[1]] <- v1[[1]] + v1[[2]]
}
f2(4)
but this fails. (it returns list(a=4,b=3) because v1 was copied into g2, not
passed by reference) Is there a way to do this?
--
View this message in context: http://r.789695.n4.nabble.com/pass-by-reference-tp2281802p2281802.html
Sent from the R devel mailing list archive at Nabble.com.