extract.given.number: Extract the N'th number from a string

Description Usage Arguments Value Author(s)

View source: R/clanToolsFunctions.R

Description

Extract the N'th numbers from each individual string element in a vector.

Usage

1
extract.given.number(c("aa1","bbb tet 11 22 33"),3)

Arguments

x

is a vector of string values

N

= 1 means the first number, N = 2 means the second number etc.

Value

A vector with the numbers.

Author(s)

Claus E. Andersen


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