Genome Team
October 21, 2020
R:複数の文字列をgrep関数で探す
こちらのwebページ
を参考にした。
x <- c(
"1100"
,
"0010"
,
"1001"
,
"1111"
) pattern <-
"001|100|000"
grep(pattern, x) [
1
]
1
2
3
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment