subset_views: Subset views

View source: R/subset.R

subset_viewsR Documentation

Subset views

Description

Method to subset (or sort) views

Usage

subset_views(object, views)

Arguments

object

a MOFA object.

views

character vector with the views names, numeric vector with the views indices, or logical vector with the views 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 view
model <- subset_views(model, views = 1)

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