expand.grid.DT {noncompliance} | R Documentation |
Expand.grid (expand.grid
) using the
data.table
package,
with up to 4 supplied vectors.
expand.grid.DT(seq1, seq2, seq3 = NA, seq4 = NA, col.names = NA)
seq1 |
Vector of values. |
seq2 |
Vector of values. |
seq3 |
Vector of values. |
seq4 |
Vector of values. |
col.names |
Names of columns. |
A data.table with all possible combinations (Cartesian product) of the elements in the input vector sequences.
expand.grid.DT(1:10, 100:110) expand.grid.DT(1:10, 100:110, col.names=c("A", "B")) expand.grid.DT(1:10, 100:110, 11:13, 1:2)