dot-designMatrix: Create design matrix

Description Usage Arguments Details Value

Description

.designMatrix creates a design matrix by expanding factors to a set of dummay variables and epanding interactions similarly.

Usage

1

Arguments

data

A data.frame or DataFrame.

cols

A numeric vector. Specify columns to include in the design of model matrix. Default is to include all columns.

Details

.designMatrix creates a design matrix using the data extracted from data. cols specifies the columns to extract. .designMatrix is built on model.matrix with contrasts.arg = NULL.

Value

a matrix.


markrobinsonuzh/treeAGG documentation built on May 26, 2019, 9:32 a.m.