Google News
logo
R - Interview Questions
How can you do a cross-product of two tables in R?
We can do a cross-product of two tables in R by using CJ() function. It produces data. table out of the two vectors. This function does the Cartesian Product or Cross product of two data. tables. 
Advertisement