reorder_response_factor | R Documentation |
Transforms levels in a factor
to 1 if they match condition of interest (
condition
) or 0 otherwise (absent
) or 0 otherwise (absent
).
reorder_response_factor(response_fct, condition, absent)
response_fct |
A factor with different categories ( |
condition |
Name of category being the condition of interest. |
absent |
Character vector of categories not corresponding to the condition of interest. |
factor
with values (0, 1) where 1 matches condition of interest.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.