
Extract Features from Functional Intervals
extract_interval_features.RdUses one or more time intervals to compute subject-level summaries from a long-format weather series. This is useful after interval-wise testing has identified periods of functional divergence.
Usage
extract_interval_features(
data,
id_col,
time_col,
value_col,
intervals,
prefix = NULL,
statistics = "mean"
)Arguments
- data
A data frame in long format.
- id_col
Subject identifier column.
- time_col
Time column, such as relative day or days after planting.
- value_col
Measured series column.
- intervals
A data frame with
startandendcolumns.- prefix
Prefix used when naming the resulting features.
- statistics
Interval statistics to compute. Use function names such as
"mean","sd", and"IQR", or a named list of custom functions.