A generic function for replacement of pruningMethod
slot in a S4 object.
Arguments
- x
a S4 object.
- value
the new value to assign or update.
Value
the modified S4 object when the new value is valid.
Author
Pascal Belleau, Astrid Deschênes and Alexander Krasnitz
Examples
# Define a dummy class to show usage
setClass("MyClass", slots = list(pruningMethod="character"))
# Create an instance
obj <- new("MyClass", pruningMethod="123")
# Call the generic (assuming a method is implemented)
# pruningMethod(obj) <- "333"