Description Usage Arguments Details Examples
Functions for constructing named lists and S3 objects.
1 2 |
object |
An object. |
class |
String, giving the class name. |
... |
A list of name=value pairs, or objects. |
The LIST function constructs/returns a named list, automatically naming it's elements, if names aren't supplied.
The EXTEND function constructs/returns an S3 object, by prepending the (optional) new class to the existing classes, and then assigning attributes.
Note that it's possible to combine the with/EXTEND functions, to take attribute values from a named list.
1 2 3 4 5 | object <- x <- y <- z <- 1
LIST (x, y, z=0, k=z)
EXTEND (object, "something", x, y, z=0, k=z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.