Skip to content

Instantly share code, notes, and snippets.

@rayheberer
Created September 29, 2020 21:37
Show Gist options
  • Save rayheberer/06d6ee0d555d2b1971e351744d5be4ea to your computer and use it in GitHub Desktop.
Save rayheberer/06d6ee0d555d2b1971e351744d5be4ea to your computer and use it in GitHub Desktop.
colors <- c("red", "green", "yellow")
vehicles <- c("bicycle", "car", "submarine", "airplane")
colored_vehicles <- purrr::cross2(colors, vehicles) %>%
purrr::map_chr(~paste(.[[1]], .[[2]]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment