Change is made to the "model.matrix" function so that the output could be used for the current package.
dummy(
x,
data = NULL,
sep = "",
drop = TRUE,
fun = as.integer,
verbose = FALSE,
name = NULL
)a data.frame, matrix or single variable or variable name
(optional) if provided, x is the name of a column on the data
(optional) the separator used between variable name and the value
(optional) whether to drop unused levels
(optional) function to coerce the value in the final matrix; 'as,integer' by default
(optional) whether to print the number of variables; FALSE by default
(optional) the column name to be selected for converting; NULL by default