Learn R Programming

healthyR.ai (version 0.1.0)

hai_range_statistic: Get the range statistic

Description

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

Usage

hai_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.

Examples

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

Run the code above in your browser using DataLab