Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

orderVersion

Ordering Version Numbers


Description

Orders a vector of version numbers, in natural order.

Usage

orderVersion(x, ..., decreasing = FALSE)

sortVersion(x, ...)

Arguments

x

a character vector of version numbers

...

extra parameters passed to orderVersion and order

decreasing

a logical that indicates if the ordering should be decreasing

Examples

v <- c('1.0', '1.03', '1.2')
order(v)
orderVersion(v)


sort(v)
sortVersion(v)

pkgmaker

Development Utilities for R Packages

v0.32.2
GPL (>= 2)
Authors
Renaud Gaujoux [aut, cre]
Initial release
2020-10-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.