cluster_interval: Cluster ranges which are implemented as 2 equal-length...

Description Usage Arguments Examples

View source: R/RcppExports.R

Description

Cluster ranges which are implemented as 2 equal-length numeric vectors.

Usage

1
cluster_interval(starts, ends, max_distance = 0L)

Arguments

starts

A numeric vector that defines the starts of each interval

ends

A numeric vector that defines the ends of each interval

max_distance

The maximum distance up to which intervals are still considered to be the same cluster. Default: 0.

Examples

1
2
3
4
starts <- c(50, 100, 120)
ends <- c(75, 130, 150)
j <- cluster_interval(starts, ends)
j == c(0,1,1)

const-ae/tidygenomics documentation built on April 17, 2021, 4:27 a.m.