getSums: Get rowSums/squaredRowSums

Description Usage Arguments Value Examples

View source: R/get-.R

Description

Extractor function for rowSums/squaredRowSums

Usage

1
getSums(data, method, squared)

Arguments

data

FELLA.DATA object

method

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

squared

Logical, whether to return rowSums (F) or squaredRowSums (T)

Value

Named vector with rowSums/squaredRowSums (internal usage)

Examples

1
2
3
4
5
## This function is internal
attach(environment(FELLA:::getSums))
data(FELLA.sample)
rowsums <- getSums(FELLA.sample, "diffusion", squared = FALSE)
hist(rowsums)

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