statsummary: Summary Statistics in a Named Vector

Description Usage Arguments Value Examples

View source: R/methods.R

Description

Simple utility wrapper to make it easy to get a variety of summary statistics in a named vector, in whatever order desired.

Usage

1
statsummary(x, types, na.rm = TRUE)

Arguments

x

A data vector

types

The types of summaries to be computed.

na.rm

Logical passed on to stat functions.

Value

a named vector

Examples

1
statsummary(1:10, c("Mean", "Min", "Max", "IQR", "Kurtosis"))

JWiley/pai documentation built on May 7, 2019, 10:15 a.m.