recode_peaks {chipenrich} | R Documentation |
Recode a vector of number of peaks to binary based on threshold
recode_peaks(num_peaks, threshold = 1)
num_peaks |
An |
threshold |
An |
An binary vector where an entry is 1 if the corresponding entry of
num_peaks
is >= threshold
and is otherwise 0.