cross_join: Cross join

View source: R/join.R

cross_joinR 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 full_join()

Examples

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

cross_join(df1, df2)

tidytable documentation built on Oct. 5, 2023, 5:07 p.m.