padding: padding

paddingR Documentation

padding

Description

pads an (integer) vector with k places below and above its lowest and highest value

(by default, clips at 0)

useful for querying around specific entires of vector, matrix, data.frame, GRanges ewtc

Usage

padding(x, k, clip = T)

Arguments

x

integer vector to pad

k

window around each entry to pad

clip

logical flag whether to clip elements below 0 (=TRUE)

Value

"padded" integer vector of unique entires with entries in k window around each input included

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.