matToList: A helper function for parallel computing (not exported)

Usage Arguments Details Author(s)

View source: R/main.R View source: R/main.R

Usage

1
2
3
matToList(.matrix, .chunksize)

matToList(.matrix, .chunksize)

Arguments

.matrix

- A matrix to split into list;

.chunksize

- A number of rows in each list element;

.matrix

- A matrix you wish to divide into a list

.chunksize

- The number of rows of .matrix to be contained in each element of the resulting list.

Details

This code simply splits the rows of .matrix into a list where each element of the list contains .chunksize number of rows of the input matrix. If .chunksize > nrow(.matrix) the code will return a list with one element, the .matrix itself.

This function simply splits the provided matrix into N elements, each containing .chunksize of rows of the original matrix. The list elements are mutually exclusive.

Author(s)

Ognjen Grujic (ognjengr@gmail.com)

Ogy Grujic (ogyg@stanford.edu)


ogru/fTree documentation built on May 29, 2019, 7:19 a.m.