| cross_join | R Documentation |
Returns every combination of rows from x and y (Cartesian product).
Both tables are collected before joining.
cross_join(x, y, suffix = c(".x", ".y"), ...)
x |
A |
y |
A |
suffix |
Suffixes for disambiguating column names (default |
... |
Ignored. |
A data.frame with nrow(x) * nrow(y) rows.
f1 <- tempfile(fileext = ".vtr")
f2 <- tempfile(fileext = ".vtr")
write_vtr(data.frame(a = 1:2), f1)
write_vtr(data.frame(b = c("x", "y", "z"), stringsAsFactors = FALSE), f2)
cross_join(tbl(f1), tbl(f2))
unlink(c(f1, f2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.