Slide 14
Slide 14 text
> library(purrr)
> x <- list(one = list(always = "a", sometimes = "b"),
+ two = list(always = "b", sometimes = NULL))
> x %>% map_chr("always")
one two
"a" "b"
> x %>% map_chr("sometimes")
Error: Result 2 is not a length 1 atomic vector