threshrank
function.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
.threshrankfun(thresh, keep0s=FALSE, ...)
x
should remain
a zero-value in the output. If FALSE, zeros are treated as any other value.rank
function.threshrank
set.transform_sample_counts
, threshrankfun
,
threshrank
data(esophagus)
x1 = transform_sample_counts(esophagus, threshrankfun(50))
otu_table(x1)
x2 = transform_sample_counts(esophagus, rank)
otu_table(x2)
identical(x1, x2)
Run the code above in your browser using DataLab