Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do.call(paste0,expand.grid(rep(list(c('A', 'B', 'M')), 2)))
- # [1] "AA" "BA" "MA" "AB" "BB" "MB" "AM" "BM" "MM"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement