CutSeqInterval: Cut vectors

Description Usage Arguments Details Value Author(s) Examples

Description

Cut vectors with invervals

Usage

1
2
3
CutSeq(cutSeq)

CutSeqEqu(vecLen, equNum)

Arguments

cutSeq

The inverals vector. The length of cutSeq could be more than 1, and 0 will be automatically excluded.

vecLen

The length of vector used to cut.

equNum

The equal internal.

Details

CutSeq() is used to cut a vector with different invervals. CutSeqEqu() is used to cut a vector with same invervals.

Value

A cut matrix in which the first row is the start point and second row is the end point.

Author(s)

Yulong Niu niuylscu@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# with one interval
CutSeq(10)
# with multiple interval
CutSeq(c(2, 3, 5))
# exclude 0
# equal interval is the same as the length of vector
CutSeqEqu(10, equNum = 10)
CutSeqEqu(21, equNum = 10)
# euqal interval is larger than the length of vector
CutSeqEqu(10, equNum = 20)

YulongNiu/KEGG_BioCyc_API documentation built on May 10, 2019, 1:13 a.m.