Learn R Programming

rbamtools (version 2.16.17)

multSeq: Create combined sequences of sequential numbers.

Description

The function takes two vectors (of type integer) of equal length. For each entry pair (p,q) the returned vector contains p:q. Therefore c(a, b, c) and c(x, y, z) produces c(a:x, b:y, c:z).

Usage

multSeq(beg, end)

Arguments

beg

numeric. Vector of start positions.

end

numeric. Vector of end positions.

Value

Integer vector

Examples

Run this code
# NOT RUN {
# MultSeq
multSeq(c(1, 4, 7), c(2, 5, 8))
# }

Run the code above in your browser using DataLab