Get and store information in a pad. pad
can be used on the
lefthand side of an assignment to store information in an object and
as normal function call to retrieve previously stored information.
pad(x, item)
pad(x, item, ...) <- value
the object where the information is stored.
the item
to be stored or extracted.
the value to be stored
additional arguments (??? are these really possible? !!!)
The requested item.
If item
is missing a named list containing all stored items.
get all items stored in the pad x
, as a named list.
get the requested item
from the pad x
.
get all items stored in the pad of x
as a named list.
get the requested item
from the pad of x
.
This is a generic function. There are methods for x
of class
objectPad
. The generic works with the slot pad
of
x
. Currently there is no check if there is one.
To remove an item use pad(x,item) <- NULL
. So, by definition,
items may not have the value NULL
.
padcheck
checks if item
has a value and if so returns
TRUE
. Otherwise it returns FALSE
.