Skip to contents

Major version

Usage

majorVersion(x)

Arguments

x

Object.

Value

numeric_version.

Note

Updated 2023-01-30.

Examples

majorVersion(c("1.0.0", "2.1"))
#> [1] ‘1’ ‘2’