Learn R Programming

bigparallelr (version 0.3.2)

split_len: Split length in blocks

Description

Split length in blocks

Usage

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

Run this code
# NOT RUN {
split_len(10, block_len = 3)
split_len(10, nb_split = 3)

# }

Run the code above in your browser using DataLab