viewNames: viewNames: set and retrieve view names

Description Usage Arguments Value Examples

Description

Function to set and retrieve view names.

Usage

1
2
3
4
5
6
7
8
9
viewNames(object)

viewNames(object) <- value

## S4 method for signature 'MOFAmodel'
viewNames(object)

## S4 replacement method for signature '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

1
2
3
4
5
data("CLL_data", package = "MOFAdata")
MOFAobject  <- createMOFAobject(CLL_data)
viewNames(MOFAobject)
viewNames(MOFAobject) <- c("DrugResponses", viewNames(MOFAobject)[2:4])
viewNames(MOFAobject) 

MOFA documentation built on Feb. 11, 2021, 2:01 a.m.