setMinMax: Set range for values in object. Changes values outside of...

View source: R/helpers.R

setMinMaxR Documentation

Set range for values in object. Changes values outside of range to min or max. Adapted from Seurat::MinMax

Description

Set range for values in object. Changes values outside of range to min or max. Adapted from Seurat::MinMax

Usage

setMinMax(obj, min, max)

Arguments

obj

Object to manipulate

min

Minimum value

max

Maximum value

Value

An object with the same dimensions as input but with altered range in values

Examples

example_matrix =  matrix(rep(c(1:5), 3), 5)
setMinMax(example_matrix, 2, 4)


kharchenkolab/sccore documentation built on Feb. 26, 2024, 12:41 a.m.