R4DS Ch. 21

map_dbl()

{purrr}

apply a function to multiple elements of an object in purrr, return a double vector

unlist()

{base}

flatten a list into an atomic vector in base R

detect()

{purrr}

return value of first matching element

map_lgl()

{purrr}

apply a function to multiple elements of an object in purrr, return a logical vector

bind_rows()

{dplyr}

bind rows in dplyr

possibly()

{purrr}

safely return result or default when there is an error

summary()

{base}

return summary of model fitting functions

accumulate()

{purrr}

accumulate intermediate result of vector reduction

safely()

{purrr}

safely return result and error

walk()

{purrr}

apply a function to multiple elements of an object to obtain side effects

head_while()

{purrr}

find first elements that satisfy predicate

tribble()

{tibble}

create row-wise tibble

tail_while()

{purrr}

find last elements that satisfy predicate

seq_along()

{base}

return a sequence along the length of an object

lapply()

{base}

apply a function to multiple elements of an object and return a list

map_chr()

{purrr}

apply a function to multiple elements of an object in purrr, return a character vector

rbind()

{base}

bind rows in base R

pmap()

{purrr}

apply a function to multiple elements over a list of vectors in parallel

try()

{base}

try an expression and allow errors

apply()

{base}

apply a function to multiple elements of an object in base R

every()

{purrr}

determine if all elements meet predicate function conditional

map()

{purrr}

apply a function to multiple elements of an object in purrr, return a list

keep()

{purrr}

keep elements using a predicate function

transpose()

{purrr}

turn list-of-lists ‘inside out’

quietly()

{purrr}

safely return result, messages, and warnings

map_int()

{purrr}

apply a function to multiple elements of an object in purrr, return a integer vector

some()

{purrr}

determine if some of elements meet predicate function conditional

discard()

{purrr}

discard elements using a predicate function

reduce()

{purrr}

reduce list to single value by iteratively applying binary function

flatten_dbl()

{purrr}

flatten a list into an atomic vector in purrr

map2()

{purrr}

apply a function to multiple elements over two vectors in parallel

The end!