Description Usage Arguments Value Examples
The descriptives
function is used to perform descriptive statistics on a set of variables in a data.frame
.
This can include descriptive statistics by group when including a vector of categorical variables in the groupby= argument.
1 2 3 4 5 6 7 8 9 |
data |
A |
vars |
A |
groupby |
An optional |
conf.level |
The confidence level for mean and median confidence intervals. The default value is 0.95. |
medianCI |
A TRUE/FALSE boolean value indicating whether or not to produce bootstrapped confidence intervals on the median (computationally intensive). |
R |
The number of bootstrap replications to use if medianCI = TRUE. Otherwise has no effect. |
round |
The number of digits to round the final result. |
A list
containing descriptive statistics for each variable listed in the vars
statement.
1 | descriptives(data=mtcars, vars=c("mpg","disp"), groupby=c("vs","am"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.