CreateBlocks: A function that creates blocks of consecutives row indices...

View source: R/CreateBlocks.R

CreateBlocksR Documentation

A function that creates blocks of consecutives row indices from the row-dimension of a data set and a block size

Description

This is a convenience function, mainly used for sequential running on very large data sets.

Usage

CreateBlocks(ds, size = 10000)

Arguments

ds

Matrix or data frame.

size

Numeric indicating the (maximum) size of the blocks

Details

The last block may consist of less indices than size.

Value

A matrix, the rows of which present the starting and end indices of the blocks.

Author(s)

Mark A. van de Wiel

Examples

## Not run: See the example in the vignette
on large data sets.
## End(Not run)

markvdwiel/ShrinkBayes documentation built on March 27, 2022, 7:47 p.m.