binarize_to_thres: Binarize matrix to given threshold
Description
Simple function that checks every element of a given matrix (or data.frame)
if it surpasses the given threshold either positively or negatively and it
outputs 1 for that element, otherwise 0.
Usage
binarize_to_thres(mat, thres)
Value
a binarized matrix (values either 0 or 1): elements that have 1
correspond to values of mat that they were either larger than the
threshold or smaller than it's negative.