Learn R Programming

skewsamp (version 1.0.0)

find_smaller_index: Finds the index of the smaller neighbour of the given value in the vector x.

Description

Finds the index of the smaller neighbour of the given value in the vector x.

Usage

find_smaller_index(value, x)

Arguments

value,

value whose neighbour is searched

x,

numeric vector

Value

integer