expand.grids: expand.grid() function for increasing dimension d mimics $d$...

View source: R/expand-grids.R

expand.gridsR Documentation

expand.grid() function for increasing dimension d mimics $d$ nested for loops with elements from $x$.

Description

expand.grid() function for increasing dimension d mimics $d$ nested for loops with elements from $x$.

Usage

expand.grids(x, d)

Arguments

x

vector of elements to be looped over

d

number of nested for loops

Value

d x length(x) matrix with each row giving the next iteration of loop


jlivsey/livsey documentation built on Oct. 17, 2024, 3:18 a.m.