Created
February 26, 2024 08:50
-
-
Save PietrH/47701b02cb78a26eab4a25fdac8f17ef to your computer and use it in GitHub Desktop.
str_extract in base R: extract a substring using regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(x, y) regmatches(x, regexpr(y, x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment