(name <- "Vipera aspis aspis")
(name2 <- strip.infraspec(name))
(name3 <- strip.spec(name2))
names.set <- c("Vipera aspis aspis",
"Vipera_aspis_atra")
sapply(names.set, strip.infraspec)
sapply(names.set, strip.infraspec, force.underscore = TRUE)
Run the code above in your browser using DataLab