Convert character vector to one-hot encoded matrix, with one column per unique string.
1 | design_matrix(cell_type, scale_columns = FALSE)
|
cell_type |
Character vector. |
scale_columns |
Boolean, should columns be normalized to sum to 1? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.