powered by
Function remove a specified string from a character vector.
removePattern ( string, pattern)
a character string
a character vector
a character pattern of length 1
str <- c(".d1.nh.120", "empty", "110", ".nh.dgd", "only.nh") removePattern(str, ".nh.")
Run the code above in your browser using DataLab