updateObject-GCIMSSample-method.Rd
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 class 'GCIMSSample'
updateObject(object, ..., verbose = FALSE)
A GCIMSSample object, typically that has been serialized and loaded from disk
Unused
Unused
The updated GCIMSSample object
The function allows you to update the old object, adding missing slots, etc so it is fully compatible with the new class definition.
obj <- GCIMSSample(drift_time=1:2, retention_time=1:3, data = matrix(1:6, nrow=2, ncol=3))
# Update the object:
newobj <- updateObject(obj)