Description Usage Arguments Value S3 class S4 class Note Examples
Dynamically handles metadata assignment and extraction in a similar fashion for both S3 and S4 objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | metadata2(x, which, ...)
metadata2(x, which, ...) <- value
## S4 method for signature 'ANY,character'
metadata2(x, which)
## S4 method for signature 'Annotated,character'
metadata2(x, which)
## S4 replacement method for signature 'ANY,character'
metadata2(x, which) <- value
## S4 replacement method for signature 'Annotated,character'
metadata2(x, which) <- value
|
x |
Object. |
which |
|
... |
Additional arguments. |
value |
|
metadata2(): Metadata. 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]].
Updated 2019-10-24.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.