expand.grids: Create a Data Frame from all combinations of factor variables

View source: R/function.R

expand.gridsR Documentation

Create a Data Frame from all combinations of factor variables

Description

Generalization of base::expand.grid to more than 2 variables.

Usage

expand.grids(d = length(list(...)), ...)

Arguments

d

number of variables (taken in following arguments with modulo)

...

variables to combine, as arrays of values

Value

data frame of all possible combinations of variables values


IRSN/DiceView documentation built on Dec. 28, 2024, 11:07 a.m.