Skip to content

Instantly share code, notes, and snippets.

@multidis
Created December 12, 2013 19:46
Show Gist options
  • Save multidis/7934183 to your computer and use it in GitHub Desktop.
Save multidis/7934183 to your computer and use it in GitHub Desktop.
String manipulations in R.
## split on any punctuation or space, common in web form submissions/survey text answers
unlist(strsplit(s, split="[[:punct:][:space:]]"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment