right.min: Find first local minimum.

Description Usage Arguments Value See Also Examples

Description

Seeks first local minimum starting from the left hand side of given vector and moving towards right hand side.

Usage

1

Arguments

v

numeric vector

Value

numeric value of first local minimum in v starting from the begining of v and going right; NA if v is nondecreasing starting at first element of v and going right (i.e. v is either constant or there is maximum first)

See Also

local.min, local.max for finding local minma and maxima in vector v

Examples

1
2
3
4
5
6
7
8
9
# maximum first (in 7, index 3)
v1 <- c(5,6,7,6,4,3,2,1)
# no maximum or minimum
v2 <- c(2,2,2,2,2,2)
# minimum at 2 (index 3) and no maximum starting at 6 (index 7)
v3 <- c(4,3,2,3,4,5,6)
print(left.max(v1))
print(left.max(v2))
print(left.max(v3))

rz6/CopulaHiC documentation built on Dec. 31, 2019, 9:19 a.m.