stringfish icon indicating copy to clipboard operation
stringfish copied to clipboard

Add more functions

Open artemklevtsov opened this issue 5 years ago • 3 comments

Thank you for the package. I hope the project will live a long time.

It would be nice to add the following functions in the package:

  • the base analogs:
    • [x] sf_starts (startsWith)
    • [x] sf_ends (endsWith)
    • [x] sf_trim (trimws)
    • [x] sf_upper (tolower)
    • [x] sf_lower (toupper)
    • [x] sf_split (strsplit)
    • [x] sf_match (match)
  • other useful:
    • [ ] sf_remove (as gsub("pattern", "", x))

artemklevtsov avatar May 11 '20 16:05 artemklevtsov

s/strats/starts/ I presume?

eddelbuettel avatar May 11 '20 19:05 eddelbuettel

Definitely! Lots of functions that can be added :)

traversc avatar May 12 '20 06:05 traversc

Another suggestion: sf_chartr()

tony-aw avatar Aug 23 '23 07:08 tony-aw