combn2: get all arrage for given n and k

Description Usage Arguments Value Author(s) Examples

View source: R/BI_SequenceMotif.R

Description

get all arrage for given n and k

Usage

1
combn2(vt, n)

Arguments

vt

a vector

n

selected counts

Value

a vector of arrage

Author(s)

Weibin Huang<654751191@qq.com>

Examples

1
2
3
4
base = c("A","C","U","G")
base2 <- combn2(base,c(3:5,9))
base3 <- combn2(base,c(3:5))
all(base2 %in% base3)

shijianasdf/BasicBioinformaticsAnalysisFromZhongShan documentation built on Jan. 3, 2020, 10:08 p.m.