makeResponseMatrix: Make response matrix

Description Usage Arguments Value

View source: R/treeda-functions.R

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.


jfukuyama/treeDA documentation built on May 18, 2021, 8:52 a.m.