Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

setMinMax

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)

sccore

Core Utilities for Single-Cell RNA-Seq

v0.1.3
GPL-3
Authors
Viktor Petukhov [aut], Ramus Rydbirk [aut], Peter Kharchenko [aut], Evan Biederstedt [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.