From 8452daa2015aa645dcc1eca3ec2bba5726603e4e Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 22 Sep 2018 09:54:59 +0200 Subject: Add test and update docs --- man/PEC_FOMC_accu_rel.Rd | 21 +++++++++++++++++++++ man/PEC_soil.Rd | 6 +++--- man/get_vertex.Rd | 12 ++++++++++++ 3 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 man/PEC_FOMC_accu_rel.Rd create mode 100644 man/get_vertex.Rd (limited to 'man') diff --git a/man/PEC_FOMC_accu_rel.Rd b/man/PEC_FOMC_accu_rel.Rd new file mode 100644 index 0000000..ab0ddd9 --- /dev/null +++ b/man/PEC_FOMC_accu_rel.Rd @@ -0,0 +1,21 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/PEC_soil.R +\name{PEC_FOMC_accu_rel} +\alias{PEC_FOMC_accu_rel} +\title{Get the relative accumulation of an FOMC model over multiples of an interval} +\usage{ +PEC_FOMC_accu_rel(n, interval, FOMC) +} +\arguments{ +\item{n}{number of applications} + +\item{interval}{Time between applications} + +\item{FOMC}{Named numeric vector containing the FOMC parameters alpha and beta} +} +\value{ +A numeric vector containing all n accumulation factors for the n applications +} +\description{ +Get the relative accumulation of an FOMC model over multiples of an interval +} diff --git a/man/PEC_soil.Rd b/man/PEC_soil.Rd index c8c93ac..e85f33c 100644 --- a/man/PEC_soil.Rd +++ b/man/PEC_soil.Rd @@ -35,7 +35,7 @@ units are in days} \item{leaching_depth}{EFSA (2017) uses the mixing depth (ecotoxicological evaluation depth) to calculate leaching for annual crops where tillage -takes place. By default, losses from the layer down to the tillage +takes place. By default, losses from the layer down to the tillage depth are taken into account in this implementation.} \item{crop}{Ignored for scenarios other than EFSA_2017. Only annual crops @@ -53,7 +53,7 @@ also be a name for the substance as a character string} If DT50 is not specified here and not available from the chent object, zero degradation is assumed} -\item{FOMC}{If specified, it should be a named numeric vector containing +\item{FOMC}{If specified, it should be a named numeric vector containing the FOMC parameters alpha and beta. This overrides any other degradation endpoints, and the degradation during the interval and after the maximum PEC is calculated using these parameters without temperature correction} @@ -111,7 +111,7 @@ According to the EFSA guidance (EFSA, 2017, p. 43), leaching should be taken into account for the EFSA 2017 scenarios, using the evaluation depth (here mixing depth) as the depth of the layer from which leaching takes place. However, as the amount leaching below the evaluation depth - (often 5 cm) will partly be mixed back during tillage, the default in this function + (often 5 cm) will partly be mixed back during tillage, the default in this function is to use the tillage depth for the calculation of the leaching rate. If temperature information is available in the selected scenarios, as diff --git a/man/get_vertex.Rd b/man/get_vertex.Rd new file mode 100644 index 0000000..fe2f5c0 --- /dev/null +++ b/man/get_vertex.Rd @@ -0,0 +1,12 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/PEC_soil.R +\name{get_vertex} +\alias{get_vertex} +\title{Fit a parabola through three points} +\usage{ +get_vertex(x, y) +} +\description{ +This was inspired by an answer on stackoverflow +https://stackoverflow.com/a/717791 +} -- cgit v1.2.1