removeNonNumeric: Removes all non-numeric characters from a string.

removeNonNumericR Documentation

Removes all non-numeric characters from a string.

Description

Function removes all non-numeric characters from a string.

Usage

removeNonNumeric ( string)

Arguments

string

a character vector

Value

a character string

Author(s)

Sebastian Weirich

Examples

str <- c(".d1.nh.120", "empty", "110", ".nh.dgd", "only.nh")
removeNonNumeric(str)

eatTools documentation built on Nov. 23, 2023, 5:06 p.m.