gagolews / stringi

Fast and portable character string processing in R (with the Unicode ICU)
https://stringi.gagolewski.com/
Other
304 stars 44 forks source link

%s*% as an alias of stri_dup() #399

Closed gagolews closed 4 years ago

gagolews commented 4 years ago

Python has it, stringi should have it too:

Python 3.8.2 (default, Jul 16 2020, 14:00:26) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> "a"*10
'aaaaaaaaaa'
gagolews commented 4 years ago

And now stringi has it as well:

> library(stringi)
> "a" %s*% 5 %s+% "b"
[1] "aaaaab"