views_names {MOFA2} | R Documentation

## views_names: set and retrieve view names

### Description

views_names: set and retrieve view names

### Usage

    views_names(object)

    views_names(object) <- value

    ## S4 method for signature 'MOFA'
    views_names(object)

    ## S4 replacement method for signature 'MOFA,character'
    views_names(object) <- value

### Arguments

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

### Value

character vector with the names for each view

### Examples

    # Using an existing trained model on simulated data
    file <- system.file("extdata", "model.hdf5", package = "MOFA2")
    model <- load_model(file)
    views_names(model)
    views_names(model) <- c("viewA", "viewB")

[Package MOFA2 version 1.2.2 Index]