Description Usage Arguments Value Examples
Turn a vector into a factor vector. The order of the vector is not changed, only the factor level
1 2 3 4 5 6 7 | partial_relevel(
x,
reorder_levels = NULL,
mixed_sorting = F,
leading_char = "",
skip_char = 0
)
|
x |
a vector |
reorder_levels |
a vector specifying which celltype should be in the earlier positions of of the factor level. There is no need to specify a string that matches the celltype name exactly. Regular expression will be used to match the string names from the beginning of the strings. |
mixed_sorting |
if set TRUE, the |
leading_char |
ignore the leading character when releveling |
a factor vector
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.