View source: R/eva_functions.R
findMax | R Documentation |
findMax
is a function that takes a subset of a vector
and returns the index of the maximum value in that subset.
findMax(subIndxs, srs)
subIndxs |
A numeric vector representing the subset of indices to consider. |
srs |
A vector of numerical data |
The index of the maximum value in the subset.
srs <- c(10, 20, 30, 40, 50)
findMax(c(1, 3, 5),srs)
#result is 5.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.