Description Usage Arguments Value Author(s) References Examples
This function matches (eventually e.g. “;” separated) entries in x with, also eventually separated values in y. The function returns TRUE for each element in x that is also present in y.
1 | pastedmatch( x, y, split=";", fixed=TRUE )
|
x |
A character vector of (eventually) pasted ids. |
y |
Can also be a vector or a single character of pasted ids; it will be split prior to any comparisons. |
split |
The character that can/will be used to split the elements. |
fixed |
Uses the |
A logical vector with the same length than x, TRUE if any (sub) element in x is also present (as a sub-element) in y.
Johannes Rainer
http://bioinfo.i-med.ac.at
1 2 3 4 5 6 7 | x <- c( "123;343", "1543;243", "243", "1443", "313;321" )
y <- c( "123", "1443", "243" )
pastedmatch( x, y )
y.string <- "1443;321;232"
pastedmatch( x, y.string )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.