| orderVersion {pkgmaker} | R Documentation |
Orders a vector of version numbers, in natural order.
orderVersion(x, decreasing = FALSE) sortVersion(x, ...)
x |
a character vector of version numbers |
decreasing |
a logical that indicates if the ordering should be decreasing |
... |
extra parameters passed to
|
#----------
# orderVersion
#----------
v <- c('1.0', '1.03', '1.2')
order(v)
orderVersion(v)
#----------
# sortVersion
#----------
sort(v)
sortVersion(v)