split_len: Split length in blocks

Description Usage Arguments Value Examples

View source: R/split.R

Description

Split length in blocks

Usage

1
split_len(total_len, block_len, nb_split = ceiling(total_len/block_len))

Arguments

total_len

Length to split.

block_len

Maximum length of each block.

nb_split

Number of blocks. Default uses the other 2 parameters.

Value

A matrix with 3 columns lower, upper and size.

Examples

1
2
split_len(10, block_len = 3)
split_len(10, nb_split = 3)

bigparallelr documentation built on Oct. 2, 2021, 5:08 p.m.