dstats_row: Gets a tibble row summarizing the statistics of a named...

dstats_rowR Documentation

Gets a tibble row summarizing the statistics of a named variable.

Description

The first column will be named "Variable" and will contain the name of the variable. The remaining columns will provide the descriptive statistics for the named variable.

Usage

dstats_row(name, df)

Arguments

name

The variable name.

df

The data frame.

Value

A tibble row of descriptive statistics for the variable.

Examples

dstats_row("x", data.frame(x = c(1, 2, 3)))
purrr::map_dfr(c("Sepal.Length", "Sepal.Width"), dstats_row, iris)

toddagood/apatfa documentation built on Jan. 30, 2023, 11:51 p.m.