String Manipulation with stringr in R
Charlotte Wickham
Assistant Professor at Oregon State University
DOLLAR %R% char_class("0123456789")
<regex> \\$[0123456789]
A digit
char_class("0-9")
<regex> [0-9]
A lower case letter
char_class("a-z")
<regex> [a-z]
An upper case letter
char_class("A-Z")
<regex> [A-Z]
DGT # A digit -->
<regex> \d
WRD # A word character -->
<regex> \w
SPC # A whitespace character
<regex> \s
char_class("0-9")
<regex> [0-9]
char_class("a-zA-z0-9_")
<regex> [a-zA-z0-9_]
neiss package https://github.com/hadley/neiss
Injuries reported in ER of random sample of hospitals
neiss package https://github.com/hadley/neiss
Injuries reported in ER of random sample of hospitals
String Manipulation with stringr in R