sampleNames {MOFA} | R Documentation

## sampleNames: set and retrieve sample names

### Description

Function to set and retrieve sample names.

### Usage

    sampleNames(object)

    sampleNames(object) <- value

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

    ## S4 replacement method for signature 'MOFAmodel,vector'
    sampleNames(object) <- value

### Arguments

`object` | a `MOFAmodel` object.
`value` | a character vector of sample names

### Value

character vector with the sample names

### Examples

    data("CLL_data", package = "MOFAdata")
    MOFAobject  <- createMOFAobject(CLL_data)
    head(sampleNames(MOFAobject))

[Package MOFA version 1.0.0 Index]