reset-methods {goCluster} | R Documentation

## Reset a goCluster-module

### Description

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.

### Methods

object = "clusterModule"
  The method is only defined for the `clusterModule`-class. But it is available for any `goCluster`-object since all classes made available by the `goCluster`-package extend the basic `clusterModule`-class.

### Author(s)

Gunnar Wrobel, http://www.gunnarwrobel.de.

### See Also

`clusterModule-class`.

### Examples

    ## 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)

[Package goCluster version 1.0.3 Index]