powered by
Function removes all non-numeric characters from a string.
removeNonNumeric ( string)
a character string
a character vector
Sebastian Weirich
str <- c(".d1.nh.120", "empty", "110", ".nh.dgd", "only.nh") removeNonNumeric(str)
Run the code above in your browser using DataLab