Description Usage Arguments Value Examples
Title recode a var if a condition if true
1 |
xvar |
The vector or data.frame column to recode |
condition |
Logical expression to select value to be recoded |
newvalue |
The value to replace |
The recoded variable
1 | recode.if(age, age > 100, 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.