findShortestInterval: Find the shortest interval

Description Usage Arguments Value Author(s) Examples

View source: R/findShortestInterval.R

Description

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

Usage

1

Arguments

x

The numeric vector.

Value

The length of the shortest interval.

Author(s)

Gjalt-Jorn Peters

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

Examples

1
findShortestInterval(c(1, 2, 4, 7, 20, 10, 15));

userfriendlyscience documentation built on May 2, 2019, 1:09 p.m.