Learn R Programming

MOFA (version 1.3.1)

viewNames: viewNames: set and retrieve view names

Description

Function to set and retrieve view names.

Usage

viewNames(object)

viewNames(object) <- value

# S4 method for MOFAmodel viewNames(object)

# S4 method for MOFAmodel,character viewNames(object) <- value

Arguments

object

a MOFAmodel object.

value

character vector with the names for each view

Value

character vector with the names for each view

Examples

Run this code
# NOT RUN {
data("CLL_data", package = "MOFAdata")
MOFAobject  <- createMOFAobject(CLL_data)
viewNames(MOFAobject)
viewNames(MOFAobject) <- c("DrugResponses", viewNames(MOFAobject)[2:4])
viewNames(MOFAobject) 
# }

Run the code above in your browser using DataLab