A consistent, simple and easy to use set of wrappers around the fantastic 'stringi' package. All function and argument names (and positions) are consistent, all functions deal with "NA"'s and zero length vectors in the same way, and the output from one function is easy to feed into the input of another.
|Author||Hadley Wickham [aut, cre, cph], RStudio [cph]|
|Date of publication||2016-08-19 21:02:58|
|Maintainer||Hadley Wickham <firstname.lastname@example.org>|
case: Convert case of a string.
invert_match: Switch location of matches to location of non-matches.
modifier-deprecated: Deprecated modifier functions.
modifiers: Control matching behaviour with modifier functions.
pipe: Pipe operator
str_c: Join multiple strings into a single string.
str_conv: Specify the encoding of a string.
str_count: Count the number of matches in a string.
str_detect: Detect the presence or absence of a pattern in a string.
str_dup: Duplicate and concatenate strings within a character vector.
str_extract: Extract matching patterns from a string.
stringr-data: Sample character vectors for practicing string manipulations.
str_interp: String interpolation.
str_length: The length of a string.
str_locate: Locate the position of patterns in a string.
str_match: Extract matched groups from a string.
str_order: Order or sort a character vector.
str_pad: Pad a string.
str_replace: Replace matched patterns in a string.
str_replace_na: Turn NA into "NA"
str_split: Split up a string into pieces.
str_sub: Extract and replace substrings from a character vector.
str_subset: Keep strings matching a pattern.
str_trim: Trim whitespace from start and end of string.
str_trunc: Truncate a character string.
str_view: View HTML rendering of regular expression match.
str_wrap: Wrap strings into nicely formatted paragraphs.
word: Extract words from a sentence.