I would like to create the following vector , which consists of two nested sequences , plus the letters a and b :
desired.data <- c('a1b1', 'a1b2', 'a1b3', 'a2b1','a2b2', 'a2b3', 'a3b1', 'a3b2', 'a3b3', 'a4b1','a4b2', 'a4b3', 'a5b1', 'a5b2', 'a5b3')
I suspect this is a duplicate, but I searched Stack Overflow for an hour without success. Thank you for any suggestions.
r paste sequence
Mark miller
source share