expand_grid_unique: Unique combination of two vectors

Description Usage Arguments Value Examples

View source: R/expand_grid_unique.R

Description

Given two vectors will find all unique pairs.

Usage

1
expand_grid_unique(x, y, include.equals = FALSE, as.data.table = TRUE)

Arguments

x

Vector

y

Vector

include.equals

if FALSE will not return a pair that is the same element paired against itself

Value

dataframe

Examples

1
2
3
4
5
6
7
## Not run: 
x <- c('one', 'two', 'three')
y <- c('a', 'b', 'c')
function(arg1)
expand_grid_unique(x, y)

## End(Not run)

emilBeBri/dttools documentation built on April 21, 2021, 5:44 a.m.