getMatrix {FELLA} | R Documentation

## Get matrix for the desired methodology

### Description

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

### Usage

    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

    ## 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

[Package FELLA version 1.0.1 Index]