cross_join {tidytable} | R Documentation |
Cross join
Description
Cross join each row of x
to every row in y
.
Usage
cross_join(x, y, ..., suffix = c(".x", ".y"))
Arguments
x |
A data.frame or data.table |
y |
A data.frame or data.table |
... |
Other parameters passed on to methods |
suffix |
Append created for duplicated column names when using |
Examples
df1 <- tidytable(x = 1:3)
df2 <- tidytable(y = 4:6)
cross_join(df1, df2)
[Package tidytable version 0.11.1 Index]