stackRegions: Stack regions into smallest number of lines (using greedy...

View source: R/misc.R

stackRegionsR Documentation

Stack regions into smallest number of lines (using greedy algorithm)

Description

Stack regions into smallest number of lines (using greedy algorithm)

Usage

stackRegions(starts, ends)

Arguments

starts

vector of starts of regions (note can add buffer by substracting arbitrary spacer)

ends

vector of ends of regions (note can add buffer by adding arbitrary spacer)

Value

vector of row ids

Examples

stackRegions(1:10,1:10+2)
stackRegions(1:10,1:10+5)

sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.