subset_groups: Subset groups

View source: R/subset.R

subset_groupsR Documentation

Subset groups

Description

Method to subset (or sort) groups

Usage

subset_groups(object, groups)

Arguments

object

a MOFA object.

groups

character vector with the groups names, numeric vector with the groups indices or logical vector with the groups to be kept as TRUE.

Value

A MOFA object

Examples

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

# Subset the first group
model <- subset_groups(model, groups = 1)

bioFAM/MOFA2 documentation built on June 12, 2024, 3:57 p.m.