orderVersion | R Documentation |
Orders a vector of version numbers, in natural order.
orderVersion(x, ..., decreasing = FALSE)
sortVersion(x, ...)
x |
a character vector of version numbers |
... |
extra parameters passed to |
decreasing |
a logical that indicates if the ordering should be decreasing |
A character vector.
v <- c('1.0', '1.03', '1.2')
order(v)
orderVersion(v)
sort(v)
sortVersion(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.