nth.values

0th

Percentile

Nth values

Returns the Nth highest or lowest values in a vector

Usage
nth.values(x, N = 2, smallest = FALSE)
Arguments
x

Numeric vector

N

Number of (Nth) values returned

smallest

(FALSE/TRUE) Return the highest, else smallest values

Value

Numeric vector of Nth values

Note

This function returns n lowest or highest elements in a vector

Aliases
  • nth.values
Examples
# NOT RUN {
nth.values(1:20, N=3, smallest = TRUE)                 
nth.values(1:20, N=3)

# }
Documentation reproduced from package spatialEco, version 1.3-2, License: GPL-3

Community examples

Looks like there are no examples yet.