Learn R Programming

eatTools (version 0.7.8)

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

Description

Function removes all non-numeric characters from a string.

Usage

removeNonNumeric ( string)

Value

a character string

Arguments

string

a character vector

Author

Sebastian Weirich

Examples

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

Run the code above in your browser using DataLab