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

View source: R/clanToolsFunctions.R

extract.given.numberR Documentation

Extract the N'th number from a string

Description

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

Usage

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 Nov. 30, 2024, 11:06 p.m.