subset_factors | R Documentation |
Method to subset (or sort) factors
subset_factors(object, factors, recalculate_variance_explained = TRUE)
object |
a |
factors |
character vector with the factor names, or numeric vector with the index of the factors. |
recalculate_variance_explained |
logical indicating whether to recalculate variance explained values. Default is |
A MOFA
object
# Using an existing trained model on simulated data
file <- system.file("extdata", "model.hdf5", package = "MOFA2")
model <- load_model(file)
# Subset factors 1 to 3
model <- subset_factors(model, factors = 1:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.