View source: R/scoringFunctions.R
Binarize a numeric vector above and below a given threshold.
1 | binarize(vec, threshold, direction)
|
vec |
Vector to binarize. |
threshold |
Threshold at which to binarize. |
direction |
Side of threshold to set to 1. greaterThan (0>thresh>=1) or lessThan (1=<thresh<0) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.