Description Usage Arguments Author(s)
This function makes use of CJ
function of the data.table package to perform a
cross join. The function makes sure that the combinations are unique and removes NAs before
joining. doUniqueCJ is rather not used as a standalone function but inside computeShares
.
1 | doUniqueCJ(dt, cols)
|
dt |
data.table |
cols |
character vector that denotes names of relevant columns |
Matthias Bannert, Gabriel Bucur
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.