reset-methods {goCluster} | R Documentation |
This method can be used on all goCluster
-objects and will
delete any intermediate results. This allows to redo the analysis
after changing the configuration of the goCluster
-object.
clusterModule
-class. But it is available for any
goCluster
-object since all classes made available by the
goCluster
-package extend the basic
clusterModule
-class.
Gunnar Wrobel, work@gunnarwrobel.de, http://www.gunnarwrobel.de.
## Load small a test dataset data(benomylsetupsmall) ## Create an empty goCluster object test <- new("goCluster") ## Assign the configuration to the object and directly execute it execute(test) <- benomylsetupsmall ## Change the configuration ## (Number of clusters are changed to 3) test@algo@clusters <- 3 ## After that it should not be executable again failure <- try(execute(test)) if (!inherits(failure, "try-error")) stop("The goCluster object should not be executable a second time!") ## Reset the object test <- reset(test) ## This should run fine test <- execute(test)