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