viewNames {MOFA} | R Documentation

## viewNames: set and retrieve view names

### Description

Function to set and retrieve view names.

### Usage

    viewNames(object)

    viewNames(object) <- value

    ## S4 method for signature 'MOFAmodel'
    viewNames(object)

    ## S4 replacement method for signature 'MOFAmodel,character'
    viewNames(object) <- value

### Arguments

`object` | a `MOFAmodel` object.
`value` | character vector with the names for each view

### Value

character vector with the names for each view

### Examples

    data("CLL_data", package = "MOFAdata")
    MOFAobject  <- createMOFAobject(CLL_data)
    viewNames(MOFAobject)
    viewNames(MOFAobject) <- c("DrugResponses", viewNames(MOFAobject)[2:4])
    viewNames(MOFAobject)

[Package MOFA version 1.2.0 Index]