This function is useful when you have saved a GCIMSSample object with a previous version of the GCIMS package and you want to load it using a new version of the package.

# S4 method for GCIMSSample
updateObject(object, ..., verbose = FALSE)

Arguments

object

A GCIMSSample object, typically that has been serialized and loaded from disk

...

Unused

verbose

Unused

Value

The updated GCIMSSample object

Details

The function allows you to update the old object, adding missing slots, etc so it is fully compatible with the new class definition.

Examples

obj <- GCIMSSample(drift_time=1:2, retention_time=1:3, data = matrix(1:6, nrow=2, ncol=3))
# Update the object:
newobj <- updateObject(obj)