ezsummary_categorical()
summarizes categorical data.Shorthand for ezsummary_categorical
ezsummary_categorical(tbl, n = FALSE, count = TRUE, p = TRUE, p_type = c("decimal", "percent"), digits = 3, rounding_type = c("round", "signif", "ceiling", "floor"), P = FALSE, round.N = 3, flavor = c("long", "wide"), fill = 0, unit_markup = NULL)
ezsummary_c(tbl, n = FALSE, count = TRUE, p = TRUE, p_type = c("decimal", "percent"), digits = 3, rounding_type = c("round", "signif", "ceiling", "floor"), P = FALSE, round.N = 3, flavor = c("long", "wide"), fill = 0, unit_markup = NULL)
dplyr
tbl
.FALSE
.TRUE
.TRUE
.p
;
possible values are decimal
and percent
. Default value is
decimal
.round.N
. Default setting is to read from getOption()
.round
, signif
, ceiling
and
floor
. When ceiling
or floor
is selected, digits
won't have any effect.p_type
if used in this
version.rounding_type
if
used in this version.htmlTable
). In the "wide" mode, the analyzed variable
will be the only "ID" variable and all the stats values will be presented
ogranized by the grouping variables (if any). If there is no grouping, the
outputs of "wide" and "long" will be the same.spread
for
details. Default value is 0
p_type
if used in this
version.library(dplyr)
mtcars %>%
group_by(am) %>%
select(cyl, gear, carb) %>%
ezsummary_categorical()
mtcars %>%
select(cyl, gear, carb) %>%
ezsummary_categorical(n=TRUE, round.N = 2)
Run the code above in your browser using DataLab