divide_by_colsum: Divide elements of a column by the column's sum in a sparse...

View source: R/normalize.R

divide_by_colsumR Documentation

Divide elements of a column by the column's sum in a sparse matrix

Description

Divide elements of a column by the column's sum in a sparse matrix

Usage

divide_by_colsum(x)

Arguments

x

A Sparse Matrix.

Value

The Sparse Matrix x with columns summing to 1.


marcalva/diem documentation built on Jan. 1, 2023, 2:33 a.m.