Skip to content

Commit

Permalink
Add f1 method to interp for manometric cumBg with mixed vent & no vent
Browse files Browse the repository at this point in the history
  • Loading branch information
sashahafner committed Dec 19, 2018
1 parent 3149380 commit 3535396
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions man/cumBg.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ cumBg(
\code{interval = FALSE} means measured gas volume or pressure is cumulative.
Applies to volumetric (\code{dat.type = "vol"}) and manometric methods (\code{dat.type = "pres"}).
The gravimetric method (\code{dat.type = "mass"}) is cumulative by nature and the \code{interval} argument is not used.
For mixed manometric measurements (some observations vented, some not), use \code{interval = TRUE}, include a column for \code{pres.resid}, and, if composition was only measured for vented observations, use \code{imethod = "f1"}.
Default is \code{TRUE}.
}

Expand Down
2 changes: 2 additions & 0 deletions man/interp.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ interp(times, y, time.out, method = "linear", extrap = FALSE)
\item{method}{
method used for interpolation.
Default is \code{"linear"}, which uses the \code{\link{approx}} function.
Use \code{"f1"} for to always use nearest value to right (see \code{f = 1} argument in \code{\link{approx}}).
For spline interpolation, use \code{"ffm"} or the other options available (see \code{\link{spline}}).
}
\item{extrap}{
Expand All @@ -40,6 +41,7 @@ interp(times, y, time.out, method = "linear", extrap = FALSE)
For cumulative production, which (usually) must monotonically increase, \code{method = "hyman"} is the best choice.
Extrapolation behavior depends on \code{method}.
For \code{method = "linear"}, \code{extrap = TRUE} simply returns the value of the closest \code{y}.
For manometric measurement with mix of venting/no venting with composition measurements only when venting use \code{method = "f1"}.
See \code{\link{approx}} and \code{\link{spline}} for more information.
}
\value{
Expand Down

0 comments on commit 3535396

Please sign in to comment.