groups_names {MOFA2} | R Documentation

## groups_names: set and retrieve group names

### Description

groups_names: set and retrieve group names

### Usage

    groups_names(object)

    groups_names(object) <- value

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

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

### Arguments

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

### Value

character vector with the names for each sample group

### Examples

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

[Package MOFA2 version 1.0.1 Index]