powered by
Takes in a numeric vector and returns back the range of that vector
hai_range_statistic(.x)
A single number, the range statistic
A numeric vector
Steven P. Sandeson II, MPH
Takes in a numeric vector and returns the range of that vector using the diff and range functions.
diff
range
hai_range_statistic(seq(1:10))
Run the code above in your browser using DataLab