View source: R/expand_grid_unique.R
expand_grid_unique | R Documentation |
Create a data frame from all combinations of the supplied vectors, without considering repetitions.
expand_grid_unique(x, y, include_equals = FALSE)
x |
A vector |
y |
A vector |
include_equals |
A boolean value, if TRUE the function will ignore the equal pairs (default = FALSE) |
A tibble with all the combinations of x and y.
expand_grid_unique(x = 1:3,y = 1:3)
expand_grid_unique(x = 1:3,y = 1:3,include_equals = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.