Removes a specified pattern from a string.
removePattern.Rd
Function remove a specified string from a character vector.
Examples
str <- c(".d1.nh.120", "empty", "110", ".nh.dgd", "only.nh")
removePattern(str, ".nh.")
#> [1] ".d1120" "empty" "110" "dgd" "only.nh"