describe | R Documentation |
Compute and print descriptive statistics for a matrix or data frame, eventually conditioning on another variable.
describe(data, by, detailed = FALSE, ...) ## S3 method for class 'describe' print(x, digits = getOption("digits") - 3, ...)
data |
a matrix or data frame. |
by |
a factor or character vector specifying the conditioning variable. This may be a variable included in |
detailed |
a logical specifying if detailed statistics should be provided. |
... |
additional arguments to be passed to the generic function. |
x |
an object of class |
digits |
the number of significant digits to use. |
This function provides simple descriptive statistics for different types of variables, such as numeric, factor, and logical, conditioning or not on another variable.
Luca Scrucca
summary
, by
data(warpbreaks) describe(warpbreaks) describe(warpbreaks, detail = TRUE) describe(warpbreaks, by = wool)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.