R4DS Ch. 14

apropros()

{utils}

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

str_count()

{stringr}

count number of matches in a string

str_extract_all()

{stringr}

extract all matching patterns in a string

str_length()

{stringr}

returns number of characters in a string

regex()

{base}

use regular expressions

str_wrap()

{stringr}

wrap strings into nicely formatted paragraphs

str_replace_na()

{stringr}

replace NAs with other characters

str_view()

{stringr}

view first regular expression match

str_match()

{stringr}

extract first matched group from a string

str_order()

{stringr}

return index of sorted vector

sum()

{base}

sum elements of vector

str_sort()

{stringr}

sort numeric or character vector

mean()

{base}

calculate mean of elements of vector

str_c()

{stringr}

combines two or more strings

writeLines()

{base}

write text lines to a connection

str_match_all()

{stringr}

extract all matched groups from a string

str_trim()

{stringr}

trim whitespace from string

str_view_all()

{stringr}

view all regular expression matches

str_replace_all()

{stringr}

replace all matched patterns in a string

str_detect()

{stringr}

detect presence of pattern in string

str_locate()

{stringr}

locate first position of pattern in a string

str_split()

{stringr}

split string into pieces

boundary()

{stringr}

match boundaries within strings

str_replace()

{stringr}

replace first matched pattern in a string

fixed()

{stringr}

compare literal bytes in a string

str_extract()

{stringr}

extract first matching patterns in a string

coll()

{stringr}

compare strings respecting standard collation rules

str_locate_all()

{stringr}

locate all positions of pattern in a string

str_sub()

{stringr}

extract parts of a string

str_to_upper()

{stringr}

change text to upper case

str_to_title()

{stringr}

change text to upper case

str_to_lower()

{stringr}

change text to lower case

c()

{base}

create vector of numbers, characters, etc.

mutate()

{dplyr}

create or modify data columns

str_subset()

{stringr}

extract elements that match pattern

The end!