ByRef(HFWutils) | R Documentation |
creates object for passing by reference
ByRef(Name, vars)
Name |
object name |
vars |
Data is put in here as a list |
creates R.oo object for passing by reference. Data is held in $.vars
~Describe the value returned If it is a LIST, use
comp1 |
Description of 'comp1' |
comp2 |
Description of 'comp2' |
...
~~further notes~~
Felix Wittmann hfwittmann@gmail.com
~put references to the literature/web site here ~
~~objects to See Also as help
, ~~~
G <- ByRef(Name="Global",vars = 1:10) G # "This is a R.oo object of type Global" G$.vars # [1] 1 2 3 4 5 6 7 8 9 10 f <- function (x) G$.vars <- c(G$.vars,11) f(G) G$.vars # [1] 1 2 3 4 5 6 7 8 9 10 11