unique_max | R Documentation |
Checks if x
has a unique maximum. The largest and the second largest value must have at least a distance of tol
.
unique_max(x, tol = 0.001)
x |
numeric: values to check |
tol |
numeric: minimum distance between the largest and the second largest value (default: |
Logical
x <-runif(100)
unique_max(x)
unique_max(x, tol=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.