search for: wrot8

Displaying 2 results from an estimated 2 matches for "wrot8".

Did you mean: wrote
2016 Feb 07
1
Assignment in environment
> On 07 Feb 2016, at 14:46 , Duncan Murdoch <murdoch.duncan at gmail.com> wrot8[e: > [snippage] > > but in fact, this doesn't work: > > getValue(fn)[[1]] <- 3 > Error in getValue(fn)[[1]] <- 3 : could not find function "getValue" > > I suspect this is a parser problem. Umm, no... The canonical semantics are that foo(x)[[....]...
2016 Feb 07
3
Assignment in environment
Dear all, I have a function "fn" with its own environment, i.e. env <- environment(fn) and env is not .GlobalEnv. And another function getValue <- function(x) environment(x)$mylist which returns the list object "mylist" which is in "env". If I want to modify "mylist", I could write 'getValue<-' <- function(x, value) {