count2blocks: Produce index pairs for vector of counts

Description Usage Arguments Value

View source: R/Rdata.R

Description

Produce index pairs for vector of counts

Usage

1
count2blocks(counts)

Arguments

counts

vector of integers specifying counts

Value

vector of pairs of indeces indicating the first and last element in a vector for the blocks specified by counts


sboehringer/sowreap documentation built on Feb. 16, 2021, 12:08 a.m.