expand_grid: a wrap up of 'expand.grid()' that takes list

Description Usage Arguments Value Examples

Description

a wrap up of expand.grid() that takes list

Usage

1
expand_grid(List, KEEP.OUT.ATTRS = TRUE, stringsAsFactors = TRUE)

Arguments

List

a list same as '...' in expand_grid(),

KEEP.OUT.ATTRS

stringsAsFactors, stringsAsFactors see expand_grid()

Value

Tsee expand_grid()

Examples

1
2
expand_grid(list(A= c(1:3),b= letters[1:4]))
expand_grid(List = list(c(1:3)))

Example output

   A b
1  1 a
2  2 a
3  3 a
4  1 b
5  2 b
6  3 b
7  1 c
8  2 c
9  3 c
10 1 d
11 2 d
12 3 d
  Var1
1    1
2    2
3    3

linear.tools documentation built on May 2, 2019, 3:17 a.m.