stat_fc {baizer}R Documentation

fold change calculation which returns a extensible tibble

Description

fold change calculation which returns a extensible tibble

Usage

stat_fc(
  df,
  y,
  x,
  method = "mean",
  .by = NULL,
  rev_div = FALSE,
  digits = 2,
  fc_fmt = "short",
  suffix = "x"
)

Arguments

df

tibble

y

value

x

sample test group

method

'mean'|'median'|'geom_mean', the summary method

.by

super-group

rev_div

reverse division

digits

fold change digits

fc_fmt

fold change format, one of short, signif, round

suffix

suffix of fold change, x as default

Value

fold change result tibble

Examples

stat_fc(mini_diamond, y = price, x = cut, .by = clarity)

[Package baizer version 0.8.0 Index]