This is useful for computation based on parameters passed by other functions.

text_stat(x, stat, cutoff = NULL)

Arguments

x

A numeric vector

stat

The statistic to compute. Options are:

  • "median"

  • "mean"

  • "tmean" (25% trimmed mean)

  • "nzmean" (mean of non-zero values)

  • "nzmedian" (median of non-zero values)

  • "prop_gt0" (proportion of samples > 0)

  • "prop_gt1" (proportion of samples > 1)

  • "prop_gt_cutoff" (proportion of samples > cutoff)

  • "min"

  • "max"

cutoff

A cutoff for use in stats calculations. Most ignore this value. Default is 0.