R4DS-2e Ch. 14

str_flatten()

{stringr}

flatten a string

coalesce()

{dplyr}

combine vectors by returning the first non-missing value at each position

str_view()

{stringr}

view first regular expression match

str_sort()

{stringr}

sort numeric or character vector (stringr version)

c()

{base}

create vector of numbers, characters, etc.

str_glue()

{stringr}

format and interpolate a string with glue

str_c()

{stringr}

combines two or more strings

str_sub()

{stringr}

extract parts of a string

filter()

{dplyr}

keep rows based on values of columns

count()

{dplyr}

count unique values of variables

summarize()

{dplyr}

summarize data usually by grouping variable

str_equal()

{stringr}

compare if two strings are equal

group_by()

{dplyr}

group data by levels of column

charToRaw()

{base}

converts a length-one character string to raw bytes

tribble()

{tibble}

create row-wise tibble

mutate()

{dplyr}

create or modify data columns

str_length()

{stringr}

returns number of characters in a string

tibble()

{tibble}

create tibble

library()

{base}

load R packages

str_to_upper()

{stringr}

change text to upper case

n()

{dplyr}

return current group size

The end!