findMax: findMax

View source: R/eva_functions.R

findMaxR Documentation

findMax

Description

findMax is a function that takes a subset of a vector and returns the index of the maximum value in that subset.

Usage

findMax(subIndxs, srs)

Arguments

subIndxs

A numeric vector representing the subset of indices to consider.

srs

A vector of numerical data

Value

The index of the maximum value in the subset.

Examples

srs <- c(10, 20, 30, 40, 50)
findMax(c(1, 3, 5),srs)
#result is 5.

RtsEva documentation built on June 24, 2024, 5:07 p.m.