Learn R Programming

TidyDensity (version 1.5.0)

tidy_range_statistic: Get the range statistic

Description

Takes in a numeric vector and returns back the range of that vector

Usage

tidy_range_statistic(.x)

Value

A single number, the range statistic

Arguments

.x

A numeric vector

Author

Steven P. Sandeson II, MPH

Details

Takes in a numeric vector and returns the range of that vector using the diff and range functions.

See Also

Other Statistic: ci_hi(), ci_lo(), tidy_kurtosis_vec(), tidy_skewness_vec(), tidy_stat_tbl()

Examples

Run this code
tidy_range_statistic(seq(1:10))

Run the code above in your browser using DataLab