base_Fastgrep: A Fast grep when lots of pattern used

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

A Fast grep when lots of pattern used

Usage

1
2

Arguments

pattern

a string

x

a vector that may contain patterns.

Details

A Fast grep when lots of pattern used.return an unique position of all the pattern.Fastgrep() is based on base::grep().

Value

a numeric of position

Author(s)

Weibin Huang

References

grep()

See Also

grep()

Examples

1
2
3
4
5
6
7
## compared with grep and Fastgrep
grep("a",c("b","c","d"))
Fastgrep("a",c("b","c","d"))
grep("b",c("b","c","d"))
Fastgrep("b",c("b","c","d"))
Fastgrep(c("a","c"),c("b","c","d"))
Fastgrep(c("b","c"),c("b","c","d"))

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