File: orderVersion.Rd

package info (click to toggle)
r-cran-pkgmaker 0.32.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,192 kB
  • sloc: sh: 13; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{orderVersion}
\alias{orderVersion}
\alias{sortVersion}
\title{Ordering Version Numbers}
\usage{
orderVersion(x, ..., decreasing = FALSE)

sortVersion(x, ...)
}
\arguments{
\item{x}{a character vector of version numbers}

\item{...}{extra parameters passed to \code{orderVersion} and \code{\link{order}}}

\item{decreasing}{a logical that indicates if the ordering should be decreasing}
}
\value{
A character vector.
}
\description{
Orders a vector of version numbers, in natural order.
}
\examples{

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


sort(v)
sortVersion(v)
}