co.intervals
Create overlapping intervals which evenly cover the data

### Description

Computes overlapping intervals with about the same number of data points in each interval and in each overlap.

### Usage

    co.intervals(x, number = 6, overlap = 0.5)

### Arguments

x | a numeric vector. Missing values are ignored.
number | a positive integer. The desired number of intervals. (You might get fewer than you want.)
overlap | a number between 0 and 1 giving the proportion of data items in an interval that are also in the next (or previous) interval.

Value
returns a two-column numeric matrix. The first column contains the beginnings of the intervals, and the second column contains the endings. Except in degenerate cases, the intervals are expanded so that no data points are on the edges of the intervals.
Examples

    co.intervals(c(1,1,4:10,21,21,23), number=4)

Package graphics version 6.1.5-18
Package Index