makeResponseMatrix: Make response matrix

Description Usage Arguments Value

Description

Create a dummy variable matrix for the response

Usage

1
makeResponseMatrix(response, class.names = NULL)

Arguments

response

A factor or character vector containing the classes.

class.names

A character vector giving the possible levels of the factor. If NULL, it will be generated from the levels of response.

Value

A dummy variable matrix with column names giving the class names.


treeDA documentation built on May 2, 2019, 5:42 a.m.