ByRef(HFWutils)R Documentation

object for passing by reference

Description

creates object for passing by reference

Usage

ByRef(Name, vars)

Arguments

Name object name
vars Data is put in here as a list

Details

creates R.oo object for passing by reference. Data is held in $.vars

Value

~Describe the value returned If it is a LIST, use

comp1 Description of 'comp1'
comp2 Description of 'comp2'

...

Note

~~further notes~~

Author(s)

Felix Wittmann hfwittmann@gmail.com

References

~put references to the literature/web site here ~

See Also

~~objects to See Also as help, ~~~

Examples


  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


[Package HFWutils version 0.7.2007.09.02 Index]