skim_grouped: Calculate a metric by groups

skim_groupedR Documentation

Calculate a metric by groups

Description

Calculate a metric by groups

Usage

skim_grouped(data, cols, cross, value = "numeric.mean", labels = TRUE)

Arguments

data

A tibble.

cols

The item columns that hold the values to summarize.

cross

The column holding groups to compare.

value

The metric to extract from the skim result, e.g. numeric.mean or numeric.sd.

labels

If TRUE (default) extracts labels from the attributes, see codebook.

Value

A tibble with each item in a row, a total column and columns for all groups.


volker documentation built on April 12, 2025, 9:16 a.m.