powered by
For a given vector, return the indexes of the sorted array and not the sorted array itself.
sort_index(vec, ascending = TRUE)
numeric vector containing sorted indexes
numeric vector
logical, order to return (ascending or descending), default = True
v <- c(10,3,1,4) j <- sort_index(v)
Run the code above in your browser using DataLab