Skip to content

Instantly share code, notes, and snippets.

@aammd
Forked from lauratboyer/getmatch.r
Created July 24, 2013 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aammd/6073489 to your computer and use it in GitHub Desktop.
Save aammd/6073489 to your computer and use it in GitHub Desktop.
getmatch <<- function(x,str2match,...) {
unlist(regmatches(x,regexpr(str2match,x,...))) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment