Learn R Programming

diem (version 1.0)

divide_by_colsum: 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.