getSums {FELLA} | R Documentation

## Get rowSums/squaredRowSums

### Description

Extractor function for rowSums/squaredRowSums

### Usage

    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

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

[Package FELLA version 1.4.1 Index]