Session Ready
Exercise

map_chr()

In this exercise, you'll dive a bit deeper into the different map_*() variants. The map() function always outputs a list. map_*() outputs other kinds of information. Study the table below and make sure you're clear on the type of output for each map_*() variant.

map_*() Output
map_chr() character vector
map_lgl() logical vector [TRUE or FALSE]
map_int() integer vector
map_dbl() double vector
Instructions 1/2
undefined XP
  • 1
  • 2
  • Compare the results of map() and map_chr() for the director named element sw_films.