Description Usage Arguments Value Author(s) References Examples
View source: R/needleInHaystack.R
Find specified search patterns (in any order, not necessarily joined) in another vector of strings.
1 | needleInHaystack(findMe, findIn)
|
findMe |
What are you looking for? A character vector. |
findIn |
Where are you looking for it? A character vector. |
A matrix with 1 indicating presence and 0 indicating absence.
Ananda Mahto
http://stackoverflow.com/q/22129542/1270695
1 2 3 4 | x <- c("cat", "dog", "rat", "far", "f*n", "god", "g*dn")
y <- c("ar", "n*", "a", "zo")
needleInHaystack(y, x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.