matchsub | R Documentation |
Sources: https://github.com/sritchie73/NetRep CRAN page: https://cran.r-project.org/web/packages/NetRep Package licence: GPL-2
x %nin% table
x %sub_in% table
x %sub_nin% table
x |
vector or |
table |
vector or |
Reason of the copy: the contingency function weren't exported from NetRep package and neither CRAN or Bioconductor allows to use un-exported function through the ':::' operator.
Note: functions description have been modified from the original work Value Matching and Subsetting
This set of functions provides shortcuts for value matching and subsetting,
on top of the functionality provided by %in%
.
%nin%
returns a logical vector indicating if elements of x
are not in table
, This is the opposite of %in%
.
%sub_in%
returns the elements x
that are %in%
table
rather than a logical vector.
%sub_nin%
returns the elements x
that are %nin%
table
rather than a logical vector.
A vector of the same length as x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.