aboutsummaryrefslogtreecommitdiff
path: root/README.rmd
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-04-22 13:42:10 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2015-04-22 13:42:10 +0200
commitec79637749d300ab4ca170805c673905e52d67dd (patch)
tree6eabf636f3012daecbe7ee446b1083da86d64e63 /README.rmd
parent8ffbc49b3f01deac6f9e83aaa6d318d4e2f8552b (diff)
Add simplest PEC soil calcs, use testthat
Diffstat (limited to 'README.rmd')
-rw-r--r--README.rmd16
1 files changed, 15 insertions, 1 deletions
diff --git a/README.rmd b/README.rmd
index 77364fb..c87014f 100644
--- a/README.rmd
+++ b/README.rmd
@@ -33,7 +33,11 @@ library(devtools)
install_github("jranke/pfm", subdir = "pkg", quick = TRUE)
```
-To read in and analyse a cwa file:
+## Use
+
+# Analyse TOXSWA output
+
+Read in and analyse a cwa file:
```{r}
library(pfm)
@@ -43,3 +47,13 @@ example_cwa$get_events(c(20, 100))
example_cwa$moving_windows(c(7, 21))
print(example_cwa)
```
+
+# Calculate PEC soil
+
+Simple PEC soil calculation for an application rate of 100 g/ha and
+25% interception, assuming complete mixing into 5 cm and a soil bulk
+density of 1.5 kg/L, output in mg/kg:
+
+```{r}
+PEC_soil(100, int = 0.25)
+```

Contact - Imprint