descriptiveStatistics: Pretty summary statistics

Description Usage Arguments Value Examples

View source: R/descriptives.R

Description

Calculates summary statistics for dataset and display key variables in a nice format. It also writes the table into a LaTeX file if desired.

Usage

1
2
descriptiveStatistics(x, digits = 3, subset = c("mean", "median", "min",
  "max", "sd", "skew", "kurtosis"), filename = "table_descriptives.tex")

Arguments

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 table_descriptives.tex). If NULL, no file is generated.

Value

Matrix with pretty output.

Examples

1
2
3
data(USArrests)
descriptiveStatistics(USArrests)
unlink("table_descriptives.tex")

sfeuerriegel/ResearchGroupTools documentation built on May 29, 2019, 8:01 p.m.