Skip to content

Conversation

JustinianOfByzantium
Copy link

Changed c(1, 2, 2, 3, 4, NA) to c(1, 5, 5, 17, 22, NA), which more clearly illustrates that the rank is returned, not the element. Since the result of the example is 1 2 2 4 5 NA (which closely resembles the result if pmin() was used), this was not immediately obvious on first glance.

Changed c(1, 2, 2, 3, 4, NA) to c(1, 5, 5, 17, 22, NA), which more clearly illustrates that the rank is returned, not the element. Since the result of the example is 1  2  2  4  5 NA (which closely resembles the result if pmin() was used), this was not immediately obvious on first glance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant