Learn R Programming

textmineR (version 2.1.3)

RecursiveRbind: Recursively call rBind from the Matrix package.

Description

This is used for combining a list of sparse matrices into a large Matrix. This is a worker function for textmineR and generally not made to be used by users. However, the function is provided for custom functions.

Usage

RecursiveRbind(matrix_list)

Arguments

matrix_list

A list, each element containing a matrix of class dgCMatrix

Value

Returns a matrix of class dgCMatrix.

Examples

Run this code
# NOT RUN {
a_matrix <- Matrix::Matrix(0, nrow=10, ncol=10)

a_list <- list(a_matrix, a_matrix, a_matrix, a_matrix, a_matrix)

result <- RecursiveRbind(a_list)
# }

Run the code above in your browser using DataLab