covariates_names {MOFA2} | R Documentation

## covariates_names: set and retrieve covariate names

### Description

covariates_names: set and retrieve covariate names

### Usage

    covariates_names(object)

    covariates_names(object) <- value

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

    ## S4 replacement method for signature 'MOFA,vector'
    covariates_names(object) <- value

### Arguments

`object` | a `MOFA` object.
`value` | a character vector of covariate names

### Value

character vector with the covariate names

### Examples

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

[Package MOFA2 version 1.4.0 Index]