Description Usage Arguments Value
Matrix of a Factor Column This is an example function named 'df.matrix' which convert a factor columns levels(k-1) to different columns with value 0 and 1.
1 | df.matrix(x, sep = ":")
|
x |
a data frame to be converted into matrix |
sep |
the delimeter to be used for seperating column and levels |
the matrix dataframe of factor column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.