binarize: Binarize a numeric vector above and below a given threshold.

Description Usage Arguments

View source: R/scoringFunctions.R

Description

Binarize a numeric vector above and below a given threshold.

Usage

1
binarize(vec, threshold, direction)

Arguments

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)


Sage-Bionetworks/challengescoring documentation built on Sept. 28, 2020, 8:27 a.m.