removeCondition {chromstaR} | R Documentation

## Remove condition from model

### Description

Remove a condition from a `combinedMultiHMM` object.

### Usage

    removeCondition(model, conditions)

### Arguments

`model` | A `combinedMultiHMM` object or file which contains such an object.
`conditions` | A character vector with the condition(s) to be removed.

### Value

The input `combinedMultiHMM` object with specified conditions removed.

### Examples

    ## Get an example HMM
    file <- system.file("data","combined_mode-differential.RData",
                        package="chromstaR")
    model <- get(load(file))

    ## Print available conditions
    print(unique(model$info$condition))

    ## Remove condition SHR
    new.model <- removeCondition(model, conditions='SHR')

[Package chromstaR version 1.6.2 Index]