pad-methods | R Documentation |
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
x |
the object where the information is stored. |
item |
the |
value |
the value to be stored |
... |
additional arguments (??? are these really possible? !!!) |
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
.
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
.
Georgi N. Boshnakov
objectPad
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.