summarise_stats: Summary statistics for a 'data.frame'

Description Usage Arguments Details Value See Also

View source: R/summarise.R

Description

A customized summary of a data.frame.

Usage

1
2
summarise_stats(data, col, na.rm = TRUE, ..., tidy = FALSE,
  key = "stat", value = "value", convert = TRUE)

Arguments

data

A data.frame.

col

A character for the SE version; a symbol for NSE version. The name of column in data on which to perform operations.

na.rm

A logical value passed to {base}/{stats} functions used internally.

...

Additional arguments passed to internal {base}/{stats} functions.

tidy

A logical value indicating whether to put output in long (i.e. "tidy") format.

key, value, convert

Parameters corresponding with those of the same name for tidyr::gather(). For this function, key and value these should be characters.

Details

The purpose of this function is equivalent to that of similar functions in other packages, such as skimr::skim(). This function outputs the following n, mean, median, sd, min, max, zn1, zp1, q25, q75, q05, q95.

The _at versions of this function are SE evaluation. (i.e. They take characters as column names.) ~~The _by version(s) of this function allows for groups to be specificed as an input, although this function will detect groups and respect their integrity (meaning that the _by version(s) are simply provided as an alternative means).~~

Value

A tibble.

See Also

skimr::skim(), tidyr::gather()


tonyelhabr/tetidy documentation built on May 29, 2019, 3:18 p.m.