dummy | R Documentation |
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
)
x |
a data.frame, matrix or single variable or variable name |
data |
(optional) if provided, x is the name of a column on the data |
sep |
(optional) the separator used between variable name and the value |
drop |
(optional) whether to drop unused levels |
fun |
(optional) function to coerce the value in the final matrix; 'as,integer' by default |
verbose |
(optional) whether to print the number of variables; FALSE by default |
name |
(optional) the column name to be selected for converting; NULL by default |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.