Cut a vector into intervals and return the midpoint of each interval.
Arguments
- x
a numeric vector of values to be cut into intervals.
- from
a numeric value specifying the start of the sequence.
- to
a numeric value specifying the end of the sequence.
- by
a numeric value specifying the increment of the sequence.
Value
a numeric vector of interval midpoints.