Description Usage Arguments Details Author(s) See Also Examples
View source: R/which.max.all.R
Determines the location, i.e., index of all minimum or maximum values in a numeric or logical vector.
1 2 3 | which.max.all(x, na.rm = FALSE, useNames = FALSE, ...)
which.min.all(x, na.rm = FALSE, useNames = FALSE, ...)
|
x |
numeric (logical, integer or double) vector or an R object
for which the internal coercion to |
na.rm |
a logical indicating whether missing values should be removed. |
useNames |
logical indicating if the value of |
... |
Further parameters to be passed to |
Internaly functions which
and
as.vector
are used.
Vilmantas Gegzna
Other matrix operations in spMisc:
corr_vec2mat()
,
indMatrix()
,
nTri2nDiag()
,
revalueMatrix()
,
sort_matrix_elements
,
which.in()
,
which.max.perRow()
1 2 3 4 5 6 | x <- c(1,2,1,3,3,2,1)
which.max.all(x)
#> 4 5
which.min.all(x)
#> 1 3 7
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.