samples_names {MOFA2} | R Documentation

## samples_names: set and retrieve sample names

### Description

samples_names: set and retrieve sample names

### Usage

    samples_names(object)

    samples_names(object) <- value

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

    ## S4 replacement method for signature 'MOFA,list'
    samples_names(object) <- value

### Arguments

`object` | a `MOFA` object.
`value` | list of character vectors with the sample names for every group

### Value

list of character vectors with the sample names for each group

### Examples

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

[Package MOFA2 version 1.2.2 Index]