Attaches a datastamp to an object.

set_stamp(object, stamp)

# S3 method for default
set_stamp(object, stamp)

# S3 method for datastamp
set_stamp(object, stamp)

# S3 method for Vector
set_stamp(object, stamp)

# S3 method for default
get_stamp(object)

# S3 method for Vector
get_stamp(object)

# S3 method for datastamp
get_stamp(object)

Arguments

object

An R object.

stamp

A datastamp object.

Value

The object with a datastamp attached.

Details

For Bioconductor objects in the S4Vectors framework, the datastamp is stored in the metadata slot instead of the attributes.

Methods (by class)

  • default: Attaches stamp to datastamp attribute.

  • datastamp: Raises an error.

  • Vector: Attaches stamp to list in metadata slot.

  • default: Retrieves the "datastamp" attribute.

  • Vector: Retrieves the list-item named "datastamp" form the metadata slot.

  • datastamp: Returns object itself.

Examples

x <- 1:5 y <- make_stamp() x <- set_stamp(x, y)