Learn R Programming

gtfstools (version 2.0.1)

summarise_distribution: Summarise a distribution

Description

Summarise a distribution

Usage

summarise_distribution(x, unit)

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.

Arguments

x

A numeric vector. NAs are ignored.

unit

A string. The unit of x.