Learn R Programming

wrMisc (version 1.15.3.1)

.extrNumHeadingSepChar: Extract numbers before separator followed by alphabetic character

Description

This function aims to extract number(s) before separator followed by alphabetic character (return named numeric vector, NAs when no numeric part found)

Usage

.extrNumHeadingSepChar(x, sep = "_")

Value

This function returns a numeric vector

Arguments

x

character vector to be treated

sep

(character) separator

See Also

Examples

Run this code
.extrNumHeadingSepChar(" 1B ")

Run the code above in your browser using DataLab