generate all possible combinations of a set of characters r code example
Example: generate all possible combinations of a set of characters r
x <- c("T", "A", "C", "G")
do.call(expand.grid, rep(list(x), 3))
x <- c("T", "A", "C", "G")
do.call(expand.grid, rep(list(x), 3))