Skip to content

product_rates() function#14

Open
Lutzeli wants to merge 5 commits intoagroscope-ch:mainfrom
Lutzeli:prod_rates
Open

product_rates() function#14
Lutzeli wants to merge 5 commits intoagroscope-ch:mainfrom
Lutzeli:prod_rates

Conversation

@Lutzeli
Copy link
Contributor

@Lutzeli Lutzeli commented Mar 9, 2026

The current function application_rate_g_per_ha() calculates application rates for active ingredients.
Add new function product_rates() which calculates product application rates in kg/ha or l/ha (prod_unit column).
The function application_rate_g_per_ha() now uses product_rates() as a basis to calculate application rates for active ingredients.

Lutzeli and others added 5 commits March 5, 2026 17:18
…ate in "l/ha" refers to spraying solution as before in [srppp::use-rates]

In the current comit `rate` is only assumed to be spraying solution if above 100 l/ha and as before unit == "l/ha" & is.na(g_perL) & !is.na(dosage). The threshold rate of 100 l/ha was set because there exist some entries where the rate is low and likely refers to the product rate (e.g. Arbo 2016 with active ingedient "Bacillus thuringiensis var. kurstaki" and rate 1 l/ha).
In _pkgdown.yml, 1 topic missing from index: "product_rates".
  Either add to the reference index, or use `@keywords internal` to drop from
  the index.
The test in this Pull Request was outdated, the warnings therein
were already fixed in main and on this branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants