find_next_vector_element {assertHE}R Documentation

Find the next element of the vector after a value

Description

Find the next element of the vector after a value

Usage

find_next_vector_element(value, vector, LTE = FALSE)

Arguments

value

A value of numeric values

vector

A vector of numeric values

LTE

a boolean to determine collection on "greater than or equal"

Value

The next element of the vector after the value

Examples

find_next_vector_element(value = 5, vector = 1:10)
find_next_vector_element(value = 5, vector = 1:4)
find_next_vector_element(value = 5, vector = 1:5, LTE = FALSE)
find_next_vector_element(value = 5, vector = 1:5, LTE = TRUE)


[Package assertHE version 1.0.0 Index]