summarise_distribution: Summarise a distribution

summarise_distributionR Documentation

Summarise a distribution

Description

Summarise a distribution

Usage

summarise_distribution(x, unit)

Arguments

x

A numeric vector. NAs are ignored.

unit

A string. The unit of x.

Value

A one-row data.table with the columns n (the number of non-NA values), min, q25, median, mean, q75, max (all NA if there are no non-NA values) and unit.


gtfstools documentation built on Oct. 28, 2026, 5:13 p.m.