powered by
Set range for values in object. Changes values outside of range to min or max. Adapted from Seurat::MinMax
setMinMax(obj, min, max)
An object with the same dimensions as input but with altered range in values
Object to manipulate
Minimum value
Maximum value
example_matrix = matrix(rep(c(1:5), 3), 5) setMinMax(example_matrix, 2, 4)
Run the code above in your browser using DataLab