View source: R/transform_filter-methods.R
threshrankfun | R Documentation |
threshrank
function.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
.
threshrankfun(thresh, keep0s=FALSE, ...)
thresh |
A single numeric value giving the threshold. |
keep0s |
A logical determining whether 0's in |
... |
Further arguments passes to the |
A single-argument function with the options to 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.