Skip to contents

Trim out-of-range counts values in data stored in a "raw_spct" object. The values are replaced with the supplied fill value.

Usage

trim_counts(x, range = c(NA, getInstrDesc(x)[["max.counts"]] - 1), fill = NA)

Arguments

x

raw_spct object

range

integer vector of length two

fill

an integer value (including NA) to be used to replace the values that are outside range.

Value

a copy of x with values replaced as needed in all counts columns present.