extract.first.number: Extract the first number from a string

Description Usage Arguments Value Author(s)

View source: R/clanToolsFunctions.R

Description

Extract the first numbers from each individual string element in a vector.

Usage

1
extract.first.number(c("aa+45", "hello9abe999"))

Arguments

x

is a vector of string values

Value

A list with the numbers ($number) and the remaining strings after the number ($rest.string).

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on Oct. 23, 2020, 7:59 a.m.