Maybe someone will still be served. I modified one of the codes they provided here, to create a tablet, although I'm not sure it's the best way to do it. Perhaps someone with more experience can tell us.
a <- c("a","b","o")
comb <- apply(expand.grid(a,a), 1, function(x) paste0(x, collapse=","))
tb <- matrix(...