Learn R Programming

sits (version 1.12.0)

sits_break: Breaks a set of time series into equal intervals

Description

This function breaks a set of time series into equal time intervals. This function is useful to produce a set of time series with the same number of samples, which is required for building a set of samples for classification.

Usage

sits_break(data.tb, timeline, start_date, end_date,
  interval = "12 month")

Arguments

data.tb

A sits tibble.

timeline

Timeline associated with the coverage.

start_date

Starting date within an interval.

end_date

Ending date within an interval.

interval

Interval for breaking the series.

Value

A sits tibble broken into equal intervals.

Examples

Run this code
# NOT RUN {
points.tb <- sits_break(point_ndvi, timeline_modis_392, "2000-08-28", "2016-08-12")
# }

Run the code above in your browser using DataLab