Displaying 1 result from an estimated 1 matches for "thisdummy".
2004 Mar 29
0
Global assignment with S4 objects in R 1.9.0 beta
...[i]] <<- x ### change a slot
}
foo2 = function() { ### define an object
mydummy <<- new("dummy")
a <- vector(length = 10, mode = "list")
class(a) <- "mylist"
mydummy@a <<- a
for (i in 1:10) foo1(i, i+1)
mydummy
}
try(thisdummy <- foo2())
unlist(thisdummy@a)
This one works as expected
R : Copyright 2004, The R Foundation for Statistical Computing
Version 1.9.0 alpha (2004-03-18), ISBN 3-900051-00-3
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions....