seasonFilter function

Subsetting data during given season for each year (seasonal analysis toolbox)

Subsetting data during given season for each year (seasonal analysis toolbox)

Return subsets of data from each year, which is in given time interval between startDate and endDate.

seasonFilter(data, startDate, endDate)

Arguments

  • data: The data be filtered, which has the same format as the output from transfData.
  • startDate, endDate: Start point and end point of time interval during a year, which has the format "MM-DD".

Returns

A data.frame with inputted data and additional column 'BATCH' indicates which subset of inputted data is located within given time interval. In column 'BATCH', different integers stands for different segments and 0 stands for outside given time interval.

Author(s)

Chaoran Hu

  • Maintainer: Chaoran Hu
  • License: GPL (>= 3.0)
  • Last published: 2024-01-10