Skip to contents

enhanceSlot() is a convenience method that applies the enhance method to a specified slot of a Ready4 object and updates the object with the result.

Apply the enhance method to the value stored in a specified slot of a Ready4 object and assign the resulting value back to that slot.

Usage

enhanceSlot(x, slot_nm_1L_chr, ...)

# S4 method for class 'Ready4'
enhanceSlot(x, slot_nm_1L_chr, ...)

Arguments

x

An object that inherits from Ready4.

slot_nm_1L_chr

Name of the slot to which the enhance method should be applied (a character vector of length one).

...

Additional arguments passed to enhance.

Value

An updated version of the supplied object.

An updated version of the supplied object.

Details

Apply the enhance method to a specified slot of a Ready4 object and update the object with the result.

The Ready4 class itself is slotless. This method is therefore intended primarily for classes that inherit from Ready4 and define one or more slots.