View source: R/genomic_bayes.R
splitWithOverlap | R Documentation |
Splits a vector into segments of a specified length with a specified overlap. The function returns a list where each element contains a segment of the vector.
splitWithOverlap(vec, seg.length, overlap)
vec |
A numeric or character vector to be split. |
seg.length |
An integer specifying the length of each segment. |
overlap |
An integer specifying the number of overlapping elements between consecutive segments. |
A list where each element is a segment of the input vector. The segments can overlap based on the specified overlap.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.