Package: windcut 0.1.0

Kaique S. Alves

windcut: Weather Time Series Feature Engineering for Plant Disease Epidemiology

Tools for transforming weather time series into model-ready features for plant disease epidemiology. The package supports relative-time window panes around biological reference dates, biologically interpretable weather summaries, feature screening, and functional data analysis workflows for comparing weather trajectories between disease classes.

Authors:Kaique S. Alves [aut, cre]

windcut_0.1.0.tar.gz
windcut_0.1.0.zip(r-4.7-any)windcut_0.1.0.zip(r-4.6-any)
windcut_0.1.0.tar.gz(r-4.7-any)windcut_0.1.0.tar.gz(r-4.6-any)
windcut_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
windcut/json (API)

# Install 'windcut' in R:
install.packages('windcut', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/alvesks/windcut/issues

Pkgdown/docs site:https://alvesks.github.io

Datasets:

On CRAN:

Conda:

3.54 score 101 exports 18 dependencies

Last updated from:429b626f6d. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK198
source / vignettesOK256
linux-releaseOK164
windows-develOK95
windows-releaseOK64
wasm-releaseOK119

Exports:aggregate_weather_dailycount_abovecount_at_or_abovecount_at_or_belowcount_belowcount_betweencount_whendays_since_last_raindegree_days_abovedegree_days_belowdegree_hours_abovedegree_hours_belowderive_dew_pointderive_favorable_conditionderive_leaf_wetness_from_rhderive_leaf_wetness_from_rh_tempderive_temperature_rangederive_vpddry_hoursexample_weather_dataextract_fda_featuresextract_interval_featuresfit_fda_group_modelfunctional_group_summaryfunctional_interval_testfunctional_on_scalarhours_in_temperature_rangehours_since_last_rainhumid_hoursmake_functional_matrixmake_windowsmax_consecutive_abovemax_consecutive_at_or_abovemax_consecutive_at_or_belowmax_consecutive_belowmax_consecutive_betweenmax_consecutive_dry_hoursmax_consecutive_humid_hoursmax_consecutive_wet_hoursmax_consecutive_whenmax_rain_eventmax_spell_duration_abovemax_spell_duration_whenmax_wet_spell_durationmax_whenmean_abovemean_at_or_abovemean_belowmean_betweenmean_rain_eventmean_spell_duration_abovemean_spell_duration_whenmean_wet_spell_durationmean_whenmin_whenplot_fda_differenceplot_fda_intervalsplot_fda_meansplot_fda_p_valuesplot_functional_differenceplot_functional_meansplot_functional_on_scalarplot_window_paneproportion_aboveproportion_at_or_aboveproportion_at_or_belowproportion_belowproportion_betweenproportion_dryproportion_humidproportion_in_temperature_rangeproportion_wetproportion_whenrain_event_countrain_eventsrainy_daysrainy_hoursrun_fda_analysisscan_windowsscreen_feature_correlationsscreen_window_featuressimulate_assessment_datasimulate_weather_seriesspell_count_abovespell_count_at_or_abovespell_count_belowspell_count_betweenspell_count_whensum_abovesum_at_or_abovesum_belowsum_betweensum_whensummarise_weather_windowthermal_time_abovethermal_time_betweenvalidate_weather_datawet_dayswet_hourswet_spell_countwindow_pane

Dependencies:clicowplotcpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Daily Weather Aggregation
Why aggregate to daily data? | Start from hourly weather | Select columns and specify daily summaries | Choose the time and date columns | Choose different daily statistics | Summarize daily biological conditions | Use non-standard weather-column names | Check the daily signal | Use the daily data in the window-pane workflow

Last update: 2026-12-05
Started: 2026-12-05

Deriving biologically meaningful weather summaries
Function glossary | Start from daily weather | Derive variables before summarizing | Translate biological ideas into summaries | Summarize inside candidate windows | Compare function classes in the output | Recommended practices

Last update: 2026-12-05
Started: 2026-12-05

Feature Screening for Disease Modeling
From windows to candidate predictors | Build a feature table | Screen with Spearman correlation | Reduce correlated candidate features | A practical interpretation workflow

Last update: 2026-12-05
Started: 2026-12-05

Functional Data Analysis for Weather Series
Why FDA in windcut? | Step 1: Load the demo data | Step 2: Run the FDA workflow | Step 3: Inspect one weather variable | Step 4: Compare retained intervals across variables | Step 5: Fit a function-on-scalar model | Step 6: Extract features for modeling | What the workflow gives the user | References

Last update: 2026-12-05
Started: 2026-12-05

Getting Started with windcut
The two tables windcut expects | Use the demo data as a template | Check your own weather table | Choose the reference date | Select the weather variables | Inspect one site before scaling up | Build the feature table | Screen candidate features | Recommended workflow

Last update: 2026-12-05
Started: 2026-12-05

Summarizing multivariable disease-favorable conditions
Function glossary | Load weather and disease data | Make one condition visible | Define multivariable summaries | Apply the rules inside candidate windows | Compare condition functions in the output

Last update: 2026-12-05
Started: 2026-12-05

Window-Pane Workflow
Why window-pane? | Step 1: Load bundled site-level weather and disease data | Step 2: Visualize the possible reference dates | Step 3: Create a fixed-width window pane | Step 4: Create a variable-width window pane | Step 5: Generate features using assessment dates | Step 6: Generate features using planting dates | Step 7: Compare feature-table size across window strategies | Step 8: Inspect one metric family | Step 9: What to do next

Last update: 2026-12-05
Started: 2026-12-05

Readme and manuals

Help Manual

Help pageTopics
Aggregate Weather Observations to Daily Dataaggregate_weather_daily
Conditional value summary functionsconditional_value_summary_functions mean_above mean_at_or_above mean_below mean_between sum_above sum_at_or_above sum_below sum_between
Example Weather Dataexample_weather_data
Extract Features from Retained FDA Intervalsextract_fda_features
Extract Features from Functional Intervalsextract_interval_features
Demo Data for Functional Data Analysis Workflowsfda_demo_data
Fit a Function-on-Scalar Model from an FDA Workflowfit_fda_group_model
Summarise Functional Curves by Groupfunctional_group_summary
Run an Interval-Wise Functional Testfunctional_interval_test
Fit a Function-on-Scalar Regressionfunctional_on_scalar
Create a Functional Matrix from Long Datamake_functional_matrix
Create Candidate Relative-Time Windowsmake_windows
Multivariable condition summary functionscount_when max_consecutive_when max_spell_duration_when max_when mean_spell_duration_when mean_when min_when multivariable_condition_summary_functions proportion_when spell_count_when sum_when
Plot FDA Difference Curvesplot_fda_difference
Plot FDA Retained Intervalsplot_fda_intervals
Plot FDA Mean Curvesplot_fda_means
Plot FDA Corrected P-Valuesplot_fda_p_values
Plot Functional Differences Between Two Groupsplot_functional_difference
Plot Smoothed Functional Means by Groupplot_functional_means
Plot Function-on-Scalar Coefficient Functionsplot_functional_on_scalar
Plot a Window-Pane Gridplot_window_pane
Run a Functional Data Analysis Workflowrun_fda_analysis
Scan Candidate Weather Windows Relative to a Reference Timescan_windows
Screen Pairwise Correlations Among Candidate Featuresscreen_feature_correlations
Screen Window-Derived Features Against a Disease Responsescreen_window_features
Simulate One Disease Assessment per Weather Seriessimulate_assessment_data
Simulate a Weather Time Seriessimulate_weather_series
Consecutive spell summary functionsmax_consecutive_above max_consecutive_at_or_above max_consecutive_at_or_below max_consecutive_below max_consecutive_between max_spell_duration_above mean_spell_duration_above spell_count_above spell_count_at_or_above spell_count_below spell_count_between spell_summary_functions
Summarise Weather Inside a Single Windowsummarise_weather_window
Thermal-time summary functionsdegree_days_above degree_days_below degree_hours_above degree_hours_below hours_in_temperature_range proportion_in_temperature_range thermal_time_above thermal_time_between thermal_time_functions
Threshold-based summary functionscount_above count_at_or_above count_at_or_below count_below count_between proportion_above proportion_at_or_above proportion_at_or_below proportion_below proportion_between threshold_summary_functions
Validate a Weather Time Seriesvalidate_weather_data
Derive meteorological variablesderive_dew_point derive_favorable_condition derive_leaf_wetness_from_rh derive_leaf_wetness_from_rh_temp derive_temperature_range derive_vpd weather_derivative_functions
Weather-specific summary functionsdays_since_last_rain dry_hours hours_since_last_rain humid_hours max_consecutive_dry_hours max_consecutive_humid_hours max_consecutive_wet_hours max_rain_event max_wet_spell_duration mean_rain_event mean_wet_spell_duration proportion_dry proportion_humid proportion_wet rainy_days rainy_hours rain_events rain_event_count weather_specific_summary_functions wet_days wet_hours wet_spell_count
Build a Wide Feature Table from Weather Windowswindow_pane
Demo Data for Window-Pane Workflowswindow_pane_demo_data