binBreaks: Compute Boundaries and Center

Description Usage Arguments Value Examples

View source: R/binBreaks.R

Description

binBreaks computes the breaks of tiled windows over a range. It is equal to the base function seq().

binCenters computes the centre of tiled windows over a range.

Usage

1
2
3
binBreaks(from, to, width)

binCenters(from, to, width)

Arguments

from

Start coordinate of the windows.

to

End coordinate of the windows.

width

Width of the windows.

Value

For n bins:

binBreaks

A numeric vector of length n+1 representing the breaks between bins.

binCenters

A numeric vector of length n representing the center of each bin.

Examples

1
2
binBreaks(-500, 500, 10)
binCenters(-500, 500, 10)

kevinrue/deeperTools documentation built on Feb. 28, 2020, 7:45 p.m.