expand.grid.nodup {dvir}R Documentation

Combinations without duplications

Description

This is similar to expand.grid() except that combinations with repeated elements are not included. The element "*" is treated separately, and is allowed to be repeated.

Usage

expand.grid.nodup(lst, max = 1e+05)

Arguments

lst

A list of vectors.

max

A positive integer. If the number of combinations (according to a preliminary lower bound) exceeds this, the function aborts with an informative error message. Default: 1e5.

Value

A data frame.

See Also

expand.grid()

Examples


lst = list(1, 1:2, 3:4)

# Compare
expand.grid.nodup(lst)
expand.grid(lst)

# Typical use case for DVI
lst2 = generatePairings(example1)
expand.grid.nodup(lst2)


[Package dvir version 3.2.1 Index]