makeDesign | R Documentation |
This function wraps around model.matrix to create a design matrix based on the different levels in model.matrix. Note that the order of the column names of the design matrix will be in lexicographic order according to the locale in use. For more, see ?Comparison
makeDesign(x)
x |
Character vector to be used to create the design matrix. |
A design matrix as the same type as returned using ?model.matrix.
n_oligo_samples = 38; n_neuron_samples = 120
cell_type = c(rep("oligodendrocyte", n_oligo_samples), rep("neuron", n_neuron_samples))
design_mat = makeDesign(cell_type)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.