Skip to content

Commit

Permalink
remove 'spp.' epithet
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaghilardi committed Apr 12, 2024
1 parent 7b0d07a commit f7bd561
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/clean_names.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ set_space_delim <- function(x)
stringi::stri_trim()

drop_sp. <- function(x){
# drop: cladophora sp2, cladophora sp., cladophora ssp.
stringi::stri_replace_all_regex(x, "\\ssp[s\\d\\.]?$", "")

# drop: cladophora sp2, cladophora sp., cladophora sps, cladophora sp
x <- stringi::stri_replace_all_regex(x, "\\ssp[s\\d\\.]?$", "")
# drop: cladophora spp, cladophora spp.
stringi::stri_replace_all_regex(x, "\\sspp[\\.]?$", "")
}
binomial_names <- function(x){
s <-
Expand Down

0 comments on commit f7bd561

Please sign in to comment.