CartesianSquare: Cartesian Square

Description Usage Arguments Details Value See Also

Description

Compute the Cartesian Square of a data frame or a tibble.

Usage

1

Arguments

x

A data frame or tibble.

...

Unquoted names of variables in x. These are first dplyr::selected from x, and only these variables are square with tidyr::crossing.

Details

This is a thin wrapper for crossing that also performs some string formatting on the column names of the data frame or tibble.

Value

A tibble whose rows denote the values of the Cartesian production of x with itself. If x has n columns, then the returned Cartesian square has 2n columns: columns 1, ..., n are the column names of x with _i appended; columns n+1, ..., 2n are the column names of x with _j appended.

See Also

crossing for a description of how the rows of the Cartesian square are ordered.


patrickreidy/phoneigen documentation built on May 20, 2019, 10:22 p.m.