renameBins {SNPhood} | R Documentation

## Rename bins.

### Description

`renameBins` renames bins from a SNPhood object.

### Usage

    renameBins(SNPhood.o, newBinsMapping, verbose = TRUE)

### Arguments

`SNPhood.o` | Object of class `SNPhood`
`newBinsMapping` | Named list. For clarity of mapping, the names of the list must be the currently defined bin names, and the values of each element the corresponding new ones.
`verbose` | Logical(1). Default TRUE. Should the verbose mode (i.e., diagnostic messages during execution of the script) be enabled?

### Value

an object of class `SNPhood` with the requested bins being renamed.

### See Also

`deleteDatasets`, `deleteRegions`

### Examples

    data(SNPhood.o, package="SNPhood")
    mapping = list("Bin1_NEW")
    names(mapping) = annotationBins(SNPhood.o)[1]
    SNPhood_mod.o = renameBins(SNPhood.o, mapping)

[Package SNPhood version 1.22.0 Index]