Learn R Programming

volker (version 3.1.0)

skim_grouped: Calculate a metric by groups

Description

Calculate a metric by groups

Usage

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

Value

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

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.