is.in {dagR}R Documentation

Check if a specific numeric value occurs in a vector.

Description

Another trivial helper function, called internally by eval.paths. It checks whether the specified (numeric) value is part of a specified vector of (numeric) values.

Usage

is.in(x, c = NULL)

Arguments

x

A numeric value, for which the presence in a vector is to be checked.

c

A vector of numeric values.

Value

Boolean; TRUE if value is present, FALSE if not.

Author(s)

Lutz P Breitling <lutz.breitling@gmail.com>

See Also

eval.paths

Examples

is.in(4, 1:3)==TRUE;
is.in(4, 1:5)==TRUE;

[Package dagR version 1.1.3 Index]