threshrankfun: A closure version of the threshrank function.
Description
Takes the same arguments as threshrank,
except for x, because the output is a
single-argument function rather than a rank-transformed
numeric. This is useful for higher-order functions that
require a single-argument function as input, like
transform_sample_counts.
Usage
threshrankfun(thresh, keep0s=FALSE, ...)
Arguments
thresh
A single numeric value giving the
threshold.
keep0s
A logical determining whether 0's in
x should remain a zero-value in the output. If
FALSE, zeros are treated as any other value.