-
Notifications
You must be signed in to change notification settings - Fork 196
str_[starts|ends] #258
Copy link
Copy link
Closed
Labels
featurea feature request or enhancementa feature request or enhancementtidy-dev-day 🤓Tidyverse Developer Day rstd.io/tidy-dev-dayTidyverse Developer Day rstd.io/tidy-dev-day
Metadata
Metadata
Assignees
Labels
featurea feature request or enhancementa feature request or enhancementtidy-dev-day 🤓Tidyverse Developer Day rstd.io/tidy-dev-dayTidyverse Developer Day rstd.io/tidy-dev-day
Type
Fields
Give feedbackNo fields configured for issues without a type.
Maybe not worth the API bloat, but I think regex-phobic users might like to have
str_starts(string, prefix)as an alias forstr_detect(string, "^prefix")andstr_ends(string, suffix)as an alias forstr_detect(string, "suffix$").For some evidence of need, Does R have function startswith or endswith like python? has quite a few upvotes.
I know we have
startsWithandendsWithin base R; I just prefer to stay in the tidyverse!