model_RGCCA | R Documentation |
Prepares factors into their vectors. Each level of a factor is converted to a column, numeric columns are left as is.
model_RGCCA(data, columns, intercept = FALSE)
data |
A data.frame with the information about the samples |
columns |
The name of the columns to be used to build the matrix |
intercept |
A logical value if you want one column with all 1 or not. |
A matrix with each factor is decomposed in as much columns as factors has minus 1 and with the numeric values as they were.
fastDummies::dummy_cols()
block <- model_RGCCA(iris, c("Petal.Width", "Species"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.