windcut 0.2.0
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
featuresandcoveragetables. Empty intervals returnNA, andmax_allowed_missing_pctoptionally removes predictors while retaining their diagnostics.Breaking API change:
window_pane(),scan_windows(), andsummarise_weather_window()return a list withfeaturesandcoveragedata frames. Useresult$featuresin existing modeling code andresult$coverageto inspect missing data and observation counts.Window summaries report missing percentages per predictor. Empty and all-missing windows return
NA. Supplysampling_intervalto set the expected observation spacing andmax_allowed_missing_pctto 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. Usesite_col = NULLexplicitly whenid_colidentifies 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_z00in place offda_rh_mean_-2_0). FDA interval extraction still includes both endpoints; existing window-pane column names are unchanged.
windcut 0.1.0
Breaking API change:
aggregate_weather_daily(),window_pane(),scan_windows()andsummarise_weather_window()require explicitweather_colsandstatistics. Column names no longer imply weather roles or default summaries. Thetemp_col,rh_col,rain_colandleaf_wetness_colarguments have been removed from these functions. For example, useweather_cols = c(temperature = "T2M", rain = "PREC")withstatistics = list(temperature = "mean", rain = "sum"). For condition-only summaries, useweather_cols = character()andstatistics = list(.conditions = list(...)); condition expressions refer to original input columns. Each selected variable must have summaries.First version: package assemble.
Added
min_interval_lengthto the FDA workflow so users can require a minimum run of consecutive tested time points before an interval is retained.
