row_gmean_grouped {sctransform}R Documentation

Geometric mean per row grouped by a factor

Description

Geometric mean per row grouped by a factor

Usage

row_gmean_grouped(x, group, eps = 1)

Arguments

x

matrix of class dgCMatrix

group

factor to group the columns by (will be converted using as.factor and droplevels)

eps

small value to add to x to avoid log(0); default is 1

Value

matrix of geometric means


[Package sctransform version 0.3 Index]