buildModelMatrix: Turn a dataframe into a model matrix for caret functions

Description Usage Arguments Value Note

Description

Turn a dataframe into a model matrix for caret functions

Usage

1
buildModelMatrix(data, predvars = NULL, keepNA = FALSE)

Arguments

data

a dataframe that the user would like to convert to a model matrix

predvars

a character vector of the names of predictor variables

keepNA

behavior with missing values, defaults to FALSE

Value

A model matrix

Note

Built on the model.matrix function. Does not produce an intercept term. Does not drop collinear factor levels.


jknowles/EWStools documentation built on May 19, 2019, 11:42 a.m.