Learn R Programming

tidytable (version 0.10.2)

cross_join: 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 full_join()

Examples

Run this code
df1 <- tidytable(x = 1:3)
df2 <- tidytable(y = 4:6)

cross_join(df1, df2)

Run the code above in your browser using DataLab