Skip to content

Instantly share code, notes, and snippets.

@rayheberer
Created September 29, 2020 21:36
Show Gist options
  • Save rayheberer/e0b2fec5c1807566bd8a09271c45bb84 to your computer and use it in GitHub Desktop.
Save rayheberer/e0b2fec5c1807566bd8a09271c45bb84 to your computer and use it in GitHub Desktop.
animals <- c("lion", "tiger", "rhinoceros")
animal_nchars <- animals %>%
purrr::set_names() %>%
purrr::map(nchar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment