Description Usage Arguments Examples
View source: R/ezsummary_quantitative.r
ezsummary_quantitative()
summarizes quantitative data.
1 2 3 4 5 6 7 8 9 10 11  ezsummary_quantitative(tbl, total = FALSE, n = FALSE, missing = FALSE,
mean = TRUE, sd = TRUE, sem = FALSE, median = FALSE,
quantile = FALSE, extra = NULL, digits = 3, rounding_type = c("round",
"signif", "ceiling", "floor"), round.N = 3, flavor = c("long", "wide"),
fill = 0, unit_markup = NULL)
ezsummary_q(tbl, total = FALSE, n = FALSE, missing = FALSE, mean = TRUE,
sd = TRUE, sem = FALSE, median = FALSE, quantile = FALSE,
extra = NULL, digits = 3, rounding_type = c("round", "signif",
"ceiling", "floor"), round.N = 3, flavor = c("long", "wide"), fill = 0,
unit_markup = NULL)

tbl 
A vector, a data.frame or a 
total 
a T/F value; total counts of records including both missing
and read data records. Default is 
n 
A T/F value; total counts of records that is not missing. Default
is 
missing 
a T/F value; total counts of records that went missing(

mean 
A T/F value; the average of a set of data. Default value is

sd 
A T/F value; the standard deviation of a set of data. Default value
is 
sem 
A T/F value; the standard error of the mean of a set of data.
Default value is 
median 
A T/F value; the median of a set of data. Default value is

quantile 
A T/F value controlling 5 outputs; the 0%, 25%, 50%, 75%
and 100% percentile of a set of data. Default value is 
extra 
A character vector offering extra customizability to this function. Please see Details for detail. 
digits 
A numeric value determining the rounding digits; Replacement
for 
rounding_type 
A character string determining the rounding method;
possible values are 
round.N 
Deprecated; Will change the value of 
flavor 
A character string with two possible inputs: "long" and "wide".
"Long" is the default setting which will put grouping information on the left
side of the table. It is more machine readable and is good to be passed into
the next analytical stage if needed. "Wide" is more print ready (except for
column names, which you can fix in the next step, or fix in LaTex or
packages like 
fill 
If set, missing values created by the "wide" flavor will be
replaced with this value. Please check 
unit_markup 
When unit_markup is not NULL, it will call the ezmarkup
function and perform column combination here. To make everyone's life
easier, I'm using the term "unit" here. Each unit mean each group of
statistical summary results. If you want to know mean and stand deviation,
these two values are your units so you can put something like "[. (.)]" there
#' @param P Deprecated; Will change the value of 
1 2 3 4 5  library(dplyr)
mtcars %>%
group_by(am) %>%
select(mpg, wt, qsec) %>%
ezsummary_quantitative()

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs in the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.