dftomat {engression}R Documentation

Convert Data Frame to Numeric Matrix

Description

This function converts a data frame into a numeric matrix. If the data frame contains factor or character variables, they are first converted to numeric.

Usage

dftomat(X)

Arguments

X

A data frame to be converted to a numeric matrix.

Value

A numeric matrix corresponding to the input data frame.


[Package engression version 0.1.4 Index]