expand_grid_unique: All combinations of inputs without repetitions

View source: R/expand_grid_unique.R

expand_grid_uniqueR Documentation

All combinations of inputs without repetitions

Description

Create a data frame from all combinations of the supplied vectors, without considering repetitions.

Usage

expand_grid_unique(x, y, include_equals = FALSE)

Arguments

x

A vector

y

A vector

include_equals

A boolean value, if TRUE the function will ignore the equal pairs (default = FALSE)

Value

A tibble with all the combinations of x and y.

Examples


expand_grid_unique(x = 1:3,y = 1:3)

expand_grid_unique(x = 1:3,y = 1:3,include_equals = TRUE)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.