ver_order {versionsort} | R Documentation |
Order version codes
Description
ver_order()
returns the permutation that rearranges a vector
of version codes alphanumerically.
Usage
ver_order(x)
Arguments
x |
|
Value
An integer vector (for details see order
).
See Also
ver_sort()
Examples
version_codes <- c("1.5-0", "1.4-1", "0.0.0.9000", "1.4-0a", "1.4-0")
ver_order(version_codes)
# The line below is the same as ver_sort(version_codes)
version_codes[ver_order(version_codes)]
[Package versionsort version 1.1.0 Index]