CJ.dt | R Documentation |
The package data.table has a CJ() function which produces a data.table out of two vectors. This function does the Cartesian product of two data.tables instead.
CJ.dt(X, Y)
X |
A data.table |
Y |
A data.table |
dt A data.table
Other helper:
convertToXML()
,
generatePDF()
,
pounds_format()
,
sanitise()
,
thousands_format()
,
wordwrap()
library(data.table)
a <- data.table(a=1:2, b=letters[1:2])
b <- data.table(c=3:4, d=letters[3:4])
ab <- CJ.dt(a,b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.