coeff {ccfindR} | R Documentation

## Coefficient matrices in an Object

### Description

Retrieve or set the coefficient matrices from factorization in an object

### Usage

    coeff(object)

### Arguments

`object` | Object of class `scNMFSet`.

### Details

After factorization, coefficient matrices `H` corresponding to each rank value are stored as elements of a list, which is in slot `coeff` of object of class `scNMFSet`. `coeff(object)` will return the list of matrices. `coeff(object) <- value` can be used to modify it.

### Value

Either `NULL` or a list of same length as `ranks(object)`, whose elements are coefficient matrices derived from factorization under each rank value.

### Examples

    s <- scNMFSet(count=matrix(rpois(n=12,lambda=3),4,3))
    s <- vb_factorize(s,ranks=seq(2,4))
    coeff(s)[[1]]

[Package ccfindR version 1.7.0 Index]