Description Usage Arguments Value Examples
This function will assign 0 if value < seuil, 1 otherwise.
1 | vec_assign(vecteur, seuil = 0.5)
|
vecteur |
A numeric vector to transform. |
seuil |
A numeric indicating the decision threshold. 0.5 is the default value. |
A vector with 0 and 1 values.
1 2 3 4 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.