R/PEC_sw_exposit_runoff.R
changed.
Showing 1 of 1 files from the diff.
@@ -41,7 +41,7 @@
Loading
41 | 41 | #' } |
|
42 | 42 | #' @source Excel 3.02 spreadsheet available from |
|
43 | 43 | #' \url{https://www.bvl.bund.de/EN/04_PlantProtectionProducts/03_Applicants/04_AuthorisationProcedure/08_Environment/ppp_environment_node.html} |
|
44 | - | #' |
|
44 | + | #' |
|
45 | 45 | #' Agroscope version 3.01a with additional runoff factors for 3 m and 6 m buffer zones received from Muris Korkaric (not published). |
|
46 | 46 | #' The variant 3.01a2 was introduced for consistency with previous calculations performed by Agroscope for a 3 m buffer zone. |
|
47 | 47 | #' @export |
@@ -120,6 +120,7 @@
Loading
120 | 120 | Koc_breaks <- c(perc_runoff_exposit$Koc_lower_bound, Inf) |
|
121 | 121 | Koc_classes <- as.character(cut(Koc, Koc_breaks, labels = rownames(perc_runoff_exposit))) |
|
122 | 122 | perc_runoff <- perc_runoff_exposit[Koc_classes, c("dissolved", "bound")] |
|
123 | + | if (identical(Koc, 0)) perc_runoff <- c(dissolved = 0, bound = 0) |
|
123 | 124 | return(unlist(perc_runoff) / 100) |
|
124 | 125 | } |
|
125 | 126 | f_runoff <- f_runoff_exposit(Koc) |
Files | Coverage |
---|---|
R | 68.86% |
Project Totals (17 files) | 68.86% |
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.