R4DS Ch. 14

str_sort()

{stringr}

sort numeric or character vector

mean()

{base}

calculate mean of elements of vector

str_sub()

{stringr}

extract parts of a string

coll()

{stringr}

compare strings respecting standard collation rules

str_replace()

{stringr}

replace first matched pattern in a string

str_locate_all()

{stringr}

locate all positions of pattern in a string

sum()

{base}

sum elements of vector

str_to_lower()

{stringr}

change text to lower case

str_replace_all()

{stringr}

replace all matched patterns in a string

str_view()

{stringr}

view first regular expression match

boundary()

{stringr}

match boundaries within strings

mutate()

{dplyr}

create or modify data columns

str_detect()

{stringr}

detect presence of pattern in string

str_count()

{stringr}

count number of matches in a string

str_extract()

{stringr}

extract first matching patterns in a string

apropros()

{utils}

returns a character vector giving the names of objects in the search list matching (as a regular expression)

str_match()

{stringr}

extract first matched group from a string

str_view_all()

{stringr}

view all regular expression matches

str_to_upper()

{stringr}

change text to upper case

str_subset()

{stringr}

extract elements that match pattern

str_match_all()

{stringr}

extract all matched groups from a string

str_split()

{stringr}

split string into pieces

str_wrap()

{stringr}

wrap strings into nicely formatted paragraphs

str_locate()

{stringr}

locate first position of pattern in a string

c()

{base}

create vector of numbers, characters, etc.

str_c()

{stringr}

combines two or more strings

regex()

{base}

use regular expressions

writeLines()

{base}

write text lines to a connection

str_to_title()

{stringr}

change text to upper case

fixed()

{stringr}

compare literal bytes in a string

str_trim()

{stringr}

trim whitespace from string

str_order()

{stringr}

return index of sorted vector

str_length()

{stringr}

returns number of characters in a string

str_extract_all()

{stringr}

extract all matching patterns in a string

str_replace_na()

{stringr}

replace NAs with other characters

The end!