Returns a function, specified by the user, with the
variables of a specified environment attached. This, in
essence, allows programmers to write functions that have
forms of private memory. This makes the function behave
similarly to an object.
Usage
attach.env(f, env = NULL, ...)
Arguments
f
a function which will be modified
env
an environment variable which will be attached
to the function being returned
...
arbitrary key-value paired parameters which
will be assigned to the environment of the function being
returned
Value
the original function ``f'' with a different environment
attached to it.