design: Assemble variables into a (design) matrix

Description Usage Arguments Details

View source: R/verbs-storage.R

Description

design() works like dplyr's function data_frame(). New columns can be defined in terms of previous columns.

Usage

1
design(..., .unjoin = NULL)

Arguments

...

Named arguments.

.unjoin

When a vector identifying groups, and if the variables in ... are unique within groups, the design matrix is reduced to one value per group.

Details

It converts factor variables to columns of indicators. It supports the : operator to interact predictors. Only variables of length 1 are recycled.


lionel-/gsim documentation built on May 21, 2019, 6:41 a.m.