From 6a843ae1d50cc4f4a0a374ff6a2106a996e94e36 Mon Sep 17 00:00:00 2001
From: Johannes Ranke
Date: Fri, 13 Feb 2026 11:04:14 +0100
Subject: Update online docs
---
docs/reference/PEC_sw_drift.html | 61 ++++++++++++++++++++++++++++++++++------
1 file changed, 52 insertions(+), 9 deletions(-)
(limited to 'docs/reference/PEC_sw_drift.html')
diff --git a/docs/reference/PEC_sw_drift.html b/docs/reference/PEC_sw_drift.html
index d8adc07..91cf36d 100644
--- a/docs/reference/PEC_sw_drift.html
+++ b/docs/reference/PEC_sw_drift.html
@@ -11,7 +11,7 @@ with input via spray drift.">
pfm
- 0.6.4
+ 0.6.5
@@ -51,10 +51,8 @@ with input via spray drift.
water_depth = as_units ( "30 cm" ) ,
drift_percentages = NULL ,
drift_data = c ( "JKI" , "RF" ) ,
- crop_group_JKI = c ( "Ackerbau" , "Obstbau frueh" , "Obstbau spaet" , "Weinbau frueh" ,
- "Weinbau spaet" , "Hopfenbau" , "Flaechenkulturen > 900 l/ha" , "Gleisanlagen" ) ,
- crop_group_RF = c ( "arable" , "hops" , "vines, late" , "vines, early" , "fruit, late" ,
- "fruit, early" , "aerial" ) ,
+ crop_group_JKI = "Ackerbau" ,
+ crop_group_RF = "arable" ,
distances = c ( 1 , 5 , 10 , 20 ) ,
formula = c ( "Rautmann" , "FOCUS" ) ,
water_width = as_units ( "100 cm" ) ,
@@ -83,7 +81,8 @@ with input via spray drift.
drift_percentages
Percentage drift values for which to calculate PECsw.
-Overrides 'drift_data' and 'distances' if not NULL.
+Overrides 'drift_data', 'distances', 'applications', crop group and
+formula arguments if not NULL.
drift_data
@@ -95,11 +94,16 @@ on the 'formula' argument.
crop_group_JKI
When using the 'JKI' drift data, one of the German names
-as used in drift_data_JKI . Will only be used if drift_data is 'JKI'.
+as used in drift_data_JKI . Will only be used if drift_data is 'JKI'. Available
+crop groups are "Ackerbau", "Obstbau frueh", "Obstbau spaet",
+"Weinbau frueh", "Weinbau spaet", "Hopfenbau", "Flaechenkulturen > 900 l/ha" and
+"Gleisanlagen".
crop_group_RF
-One of the crop groups as used in drift_parameters_focus
+Crop group(s) as used in drift_parameters_focus , i.e.
+"arable", "hops", "vines, late", "vines, early", "fruit, late", "fruit, early"
+or "aerial".
distances
@@ -138,6 +142,8 @@ if the specified rate does not have Details
It is recommened to specify the arguments rate, water_depth and
water_width using units::units from the units package.
+Since pfm version 0.6.5, the function is vectorised with respect to rates,
+applications, water depth, crop groups and distances
See also
@@ -208,6 +214,43 @@ if the specified rate does not have
#> Units: [µg/L]
#> 1 m 5 m 10 m 20 m
#> 0.60169999 0.18937304 0.10402698 0.05517095
+
+# The function is vectorised with respect to rates, applications, water depth,
+# crop groups and distances
+PEC_sw_drift (
+ rate = rep ( 100 , 6 ) ,
+ applications = c ( 1 , 2 , rep ( 1 , 4 ) ) ,
+ water_depth = c ( 30 , 30 , 30 , 60 , 30 , 30 ) ,
+ crop_group_JKI = c ( rep ( "Ackerbau" , 4 ) , rep ( "Obstbau frueh" , 2 ) ) ,
+ distances = c ( rep ( 5 , 4 ) , 10 , 5 ) )
+#> Units: [µg/L]
+#> 5 m 5 m 5 m 5 m 10 m 5 m
+#> 0.1900000 0.1566667 0.1900000 0.0950000 3.9366667 6.6300000
+
+# Try the same with the Rautmann formula
+PEC_sw_drift (
+ rate = rep ( 100 , 6 ) ,
+ applications = c ( 1 , 2 , rep ( 1 , 4 ) ) ,
+ water_depth = c ( 30 , 30 , 30 , 60 , 30 , 30 ) ,
+ drift_data = "RF" ,
+ crop_group_RF = c ( rep ( "arable" , 4 ) , rep ( "fruit, early" , 2 ) ) ,
+ distances = c ( rep ( 5 , 4 ) , 10 , 5 ) )
+#> Units: [µg/L]
+#> 5 m 5 m 5 m 5 m 10 m 5 m
+#> 0.19064473 0.15991216 0.19064473 0.09532236 3.93566026 6.62814740
+
+# And with the FOCUS variant
+PEC_sw_drift (
+ rate = rep ( 100 , 6 ) ,
+ applications = c ( 1 , 2 , rep ( 1 , 4 ) ) ,
+ water_depth = c ( 30 , 30 , 30 , 60 , 30 , 30 ) ,
+ drift_data = "RF" ,
+ formula = "FOCUS" ,
+ crop_group_RF = c ( rep ( "arable" , 4 ) , rep ( "fruit, early" , 2 ) ) ,
+ distances = c ( rep ( 5 , 4 ) , 10 , 5 ) )
+#> Units: [µg/L]
+#> 5 m 5 m 5 m 5 m 10 m 5 m
+#> 0.1741454 0.1456444 0.1741454 0.0870727 3.7957683 6.1809560