viv {dagR} | R Documentation |
Is a numeric vector in another vector?
Description
Checks if all numeric elements of a vector occur also in another vector. It is internally used by msas
to check if some adjustment set is contained in another one.
Usage
viv(v1, v2)
Arguments
v1 |
The vector whose occurrence in v2 is to be checked. |
v2 |
The vector in which v1 might occur. |
Details
If a value occurs more than once in v1, it is counted as contained in v2 if it appears there once.
An empty v1 (consisting only of NA) is considered to be contained in any v2.
Value
TRUE if v1 occurs in v2, FALSE otherwise.
Author(s)
Lutz P Breitling <l.breitling@posteo.de>
See Also
[Package dagR version 1.2.1 Index]