metadata2 | R Documentation |
Dynamically handles metadata assignment and extraction in a similar fashion for both S3 and S4 objects.
metadata2(x, which, ...)
metadata2(x, which, ...) <- value
x |
Object. |
which |
|
... |
Additional arguments. |
value |
|
metadata2()
: list
. Returns NULL
on which
match failure, similar
to attr()
and metadata()
.
metadata2<-()
: Modified object.
Internally slots into attributes()
.
Attribute is also accessible via attr(object, which)
.
Requires that object extends Annotated
class,
which supports metadata()
.
Internally slots into metadata()
.
Attribute is also accessible via metadata(object)[[which]]
.
showMethods("metadata2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.