base_Fastextra: a fast way to extra part of elements in a vetor.

Description Usage Arguments Details Value Author(s) Examples

Description

a fast way to extra part of elements in a vetor.

Usage

1

Arguments

vt

a vector with common split

split

the common split

n

which splited string should be extrated

Details

a fast way to extra part of elements in a vetor.

Value

a vector with lots of extrated strings.

Author(s)

Weibin Huang

Examples

1
2
3
a <- rep(paste("a","b",sep="-"),10)
Fastextra(a,"-",1) # "a" "a" "a" "a" "a" "a" "a" "a" "a" "a"
Fastextra(a,"-",2) # "b" "b" "b" "b" "b" "b" "b" "b" "b" "b"

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