getMatrix: Get matrix for the desired methodology

Description Usage Arguments Value Examples

View source: R/get-.R

Description

Extractor function for the matrices of hypergeometric, diffusion and PageRank methodologies

Usage

1
getMatrix(data, method)

Arguments

data

FELLA.DATA object

method

Character, exactly one of: "hypergeom", "diffusion", "pagerank"

Value

Matrix for the desired methodology (internal usage)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## This function is internal
attach(environment(FELLA:::getMatrix))
data(FELLA.sample)
# When a matrix is loaded:
x <- getMatrix(FELLA.sample, "hypergeom")
dim(x)
# When it is not:
y <- getMatrix(FELLA.sample, "diffusion")
dim(y)
y

b2slab/FELLA documentation built on March 3, 2021, 2:22 p.m.