setMinMax | R Documentation |
Set range for values in object. Changes values outside of range to min or max. Adapted from Seurat::MinMax
setMinMax(obj, min, max)
obj |
Object to manipulate |
min |
Minimum value |
max |
Maximum value |
An object with the same dimensions as input but with altered range in values
example_matrix = matrix(rep(c(1:5), 3), 5)
setMinMax(example_matrix, 2, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.