findShortestInterval

Find the shortest interval

This function takes a numeric vector, sorts it, and then finds the shortest interval and returns its length.

Keywords
utilities
Usage
findShortestInterval(x)
Arguments
x

The numeric vector.

Value

The length of the shortest interval.

Aliases
  • findShortestInterval
Examples
# NOT RUN {
findShortestInterval(c(1, 2, 4, 7, 20, 10, 15));
# }
Documentation reproduced from package userfriendlyscience, version 0.7.2, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.