renameDatasets {SNPhood} | R Documentation

## Rename datasets.

### Description

`renameDatasets` renames datasets from a SNPhood object.

### Usage

    renameDatasets(SNPhood.o, newDatasetsMapping, verbose = TRUE)

### Arguments

`SNPhood.o` | Object of class `SNPhood`
`newDatasetsMapping` | Named list. Named list. For clarity of mapping, the names of the list must be the currently defined dataset 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 datasets being renamed.

### See Also

`renameBins`, `renameReadGroups`, `renameRegions`

### Examples

    data(SNPhood.o, package="SNPhood")
    mapping = list("Individual1", "Individual2")
    names(mapping) = annotationDatasets(SNPhood.o)
    SNPhood_mod.o = renameDatasets(SNPhood.o, mapping)

[Package SNPhood version 1.16.0 Index]