split_matrix: Split a Matrix into Smaller Submatrices by Column

View source: R/misc.R

split_matrixR Documentation

Split a Matrix into Smaller Submatrices by Column

Description

This function splits a matrix into multiple smaller matrices by column. It is useful for processing large matrices in chunks, such as when performing analysis on a single computer with limited memory.

Usage

split_matrix(matrix, chunk_size)

Arguments

matrix

A numeric or logical matrix to be split.

chunk_size

The number of columns to include in each smaller matrix.

Value

A list of smaller matrices, each with chunk_size columns.


easybio documentation built on Sept. 17, 2024, 1:08 a.m.