padding | R Documentation |
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
padding(x, k, clip = T)
x |
integer vector to pad |
k |
window around each entry to pad |
clip |
logical flag whether to clip elements below 0 (=TRUE) |
"padded" integer vector of unique entires with entries in k window around each input included
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.