aggregate_to_daily() with value_cols to summarise sub-daily
measurements. The aggregation and output are unchanged.
aggregate_weather_daily() remains available for existing scripts with
its original arguments, including weather_cols.Added define_windows() for custom relative-time windows, including
overlapping intervals. The resulting grid works with the existing
window-pane functions.
FDA rejects duplicate subject-time records and infinite measurements before testing intervals or extracting predictors.
FDA interval extraction now returns separate features and coverage
tables. Empty intervals return NA, and max_allowed_missing_pct
optionally removes predictors while retaining their diagnostics.
Breaking API change: window_pane(), scan_windows(), and
summarise_weather_window() return a list with features and coverage
data frames. Use result$features in existing modeling code and
result$coverage to inspect missing data and observation counts.
Window summaries report missing percentages per predictor. Empty and
all-missing windows return NA. Supply sampling_interval to set the
expected observation spacing and max_allowed_missing_pct to remove
predictors exceeding a user-defined coverage limit.
window_pane() now checks the site key in both input tables and rejects
missing, blank, or unmatched site IDs. Use site_col = NULL explicitly when
id_col identifies assessments that share one weather series.
FDA feature names now use the same endpoint codes as the default window-pane
labels (for example, fda_rh_mean_m02_z00 in place of fda_rh_mean_-2_0).
FDA interval extraction still includes both endpoints; existing window-pane
column names are unchanged.
Breaking API change: aggregate_weather_daily(), window_pane(),
scan_windows() and summarise_weather_window() require explicit
weather_cols and statistics. Column names no longer imply weather roles
or default summaries. The temp_col, rh_col, rain_col and
leaf_wetness_col arguments have been removed from these functions.
For example, use weather_cols = c(temperature = "T2M", rain = "PREC")
with statistics = list(temperature = "mean", rain = "sum").
For condition-only summaries, use weather_cols = character() and
statistics = list(.conditions = list(...)); condition expressions refer
to original input columns. Each selected variable must have summaries.
First version: package assemble.
Added min_interval_length to the FDA workflow so users can require a
minimum run of consecutive tested time points before an interval is retained.