Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.in

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 <l.breitling@posteo.de>

See Also

Examples

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

dagR

R Functions for Directed Acyclic Graphs

v1.2.0
GPL-2
Authors
Lutz P Breitling
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.