I have the following code that contains two vectors of different lengths, and repeats each column so that when the vectors are column bound, there is a unique combination for each row of the the new dataframe. My question is this: Is there a way to achieve the same outcome from the code below by using nested purrr::map functions?
library(tidyverse)
big <- LETTERS[1:10]
small <- letters[1:6]
ColBig <- rep(big, each =length(small))
ColSmall <- rep(small, length(big))
bind_cols(ColBig, ColSmall) %>%
setNames(c("ColBig", "ColSmall"))