R Supprimer l'expansion de la chaîne

fruits <- c("one apple", "two pears", "three bananas")

# Remove first occurance of regex pattern
str_remove(fruits, "[aeiou]")
#> [1] "ne apple"     "tw pears"     "thre bananas"

# Remove all occurances of regex pattern
str_remove_all(fruits, "[aeiou]")
#> [1] "n ppl"    "tw prs"   "thr bnns"
Matthew David