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)

FELLA documentation built on Nov. 8, 2020, 6:57 p.m.