metadata2: Metadata

Description Usage Arguments Value S3 class S4 class Examples

Description

Dynamically handles metadata assignment and extraction in a similar fashion for both S3 and S4 objects.

Usage

1
2
3
metadata2(x, which, ...)

metadata2(x, which, ...) <- value

Arguments

x

Object.

which

character(1). A non-empty character string specifying which attribute is to be accessed. Note that positional numeric arguments are currently not allowed.

...

Additional arguments.

value

ANY. Metadata values to assign into slot, defined by which.

Value

S3 class

Internally slots into attributes(). Attribute is also accessible via attr(object, which).

S4 class

Requires that object extends Annotated class, which supports metadata().

Internally slots into metadata(). Attribute is also accessible via metadata(object)[[which]].

Examples

1
showMethods("metadata2")

acidgenomics/AcidGenerics documentation built on Sept. 13, 2021, 1:03 p.m.