Dichotomize data with a cutoff
Function to dichotomize the input data for the semigroup construction with a cutoff value.
some data in a numeric form (usually arrays)
the cutoff value to perform the dichotomization (default
(logical) whether or not the diagonals should be included (default
This is a convenient function (or wrapper if you like) of the
replace function. In this case the function is aimed to specify a cutoff value for the dichotomization of the data where the values equal or higher to the cutoff are converted to one, while the others are set to zero. The cutoff can be any real number.
Binary values of the input data.
The labels are preserved after the dichotomization.
Antonio Rivero Ostoic
1 2 3 4 5 6
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.