NumFromId: Get the numerical parts of identifiers.

Description Usage Arguments Details Value Examples

View source: R/match.sigs.R

Description

Get the numerical parts of identifiers.

Usage

1

Arguments

s

A character vector.

Details

Not very sophisticated.

Value

A vector, each element of which is the integer corresponding to the first string of digits of an element of s.

Examples

1
2
3
x<- c("SBS22", "SBS2", "SBS7b", "SBS7a")
NumFromId(x)
x[order(NumFromId(x))]

steverozen/ICAMSxtra documentation built on Feb. 9, 2022, 7:01 a.m.