Learn R Programming

baizer (version 0.8.0)

stat_fc: 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"
)

Value

fold change result tibble

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

Examples

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

Run the code above in your browser using DataLab