scale.sparse: Scale sparse matrix dividing it in blocks.

View source: R/helpers_sparse_matrix.R

scale.sparseR Documentation

Scale sparse matrix dividing it in blocks.

Description

An alternative version of scale for sparse matrix. Avoid errors for large matrixes.

Usage

## S3 method for class 'sparse'
scale(matrix, blocksize = 500)

Arguments

matrix

any matix; the data tha will be scaled.

blocksize

numeric; the size of the blocks used in each scaling.

Value

any matrix; the scaled matrix.


edroaldo/fusca documentation built on March 1, 2023, 1:43 p.m.