R4DS Ch. 14

str_replace()

{stringr}

replace first matched pattern in a string

c()

{base}

create vector of numbers, characters, etc.

str_locate_all()

{stringr}

locate all positions of pattern in a string

str_trim()

{stringr}

trim whitespace from string

str_wrap()

{stringr}

wrap strings into nicely formatted paragraphs

sum()

{base}

sum elements of vector

boundary()

{stringr}

match boundaries within strings

str_subset()

{stringr}

extract elements that match pattern

coll()

{stringr}

compare strings respecting standard collation rules

str_sort()

{stringr}

sort numeric or character vector

str_to_lower()

{stringr}

change text to lower case

mutate()

{dplyr}

create or modify data columns

str_sub()

{stringr}

extract parts of a string

str_replace_all()

{stringr}

replace all matched patterns in a string

str_match()

{stringr}

extract first matched group from a string

str_to_upper()

{stringr}

change text to upper case

str_replace_na()

{stringr}

replace NAs with other characters

str_extract()

{stringr}

extract first matching patterns in a string

fixed()

{stringr}

compare literal bytes in a string

apropros()

{utils}

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

mean()

{base}

calculate mean of elements of vector

str_length()

{stringr}

returns number of characters in a string

str_split()

{stringr}

split string into pieces

str_locate()

{stringr}

locate first position of pattern in a string

str_count()

{stringr}

count number of matches in a string

str_view_all()

{stringr}

view all regular expression matches

str_to_title()

{stringr}

change text to upper case

str_detect()

{stringr}

detect presence of pattern in string

str_extract_all()

{stringr}

extract all matching patterns in a string

regex()

{base}

use regular expressions

str_c()

{stringr}

combines two or more strings

str_order()

{stringr}

return index of sorted vector

str_view()

{stringr}

view first regular expression match

str_match_all()

{stringr}

extract all matched groups from a string

writeLines()

{base}

write text lines to a connection

The end!