Description Usage Arguments Value Examples
Calculates summary statistics for dataset and display key variables in a nice format. It also writes the table into a LaTeX file if desired.
1 2 | descriptiveStatistics(x, digits = 3, subset = c("mean", "median", "min",
"max", "sd", "skew", "kurtosis"), filename = "table_descriptives.tex")
|
x |
Dataset in the form of a matrix or a data frame. |
digits |
Number of digits to be printed (default: 3). |
subset |
Variables to be selected. |
filename |
Path to which a LaTeX copy is exported (default is
|
Matrix with pretty output.
1 2 3 | data(USArrests)
descriptiveStatistics(USArrests)
unlink("table_descriptives.tex")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.