Skip to content

Commit

Permalink
doc: Add qp_dilute examples
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiAragaki committed May 6, 2024
1 parent 2358275 commit 25aaa67
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ License: MIT + file LICENSE
Encoding: UTF-8
Language: en
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Suggests:
DiagrammeR,
knitr,
Expand Down
15 changes: 15 additions & 0 deletions R/qp_dilute.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@
#' @return Same as input, with the volumes of lysate and volumes of diluent to
#' add.
#' @importFrom rlang .data
#'
#' @examples
#'
#' df <- data.frame(.pred_conc = 1)
#' qp_dilute(df, target_conc = 0.5, target_vol = 30)
#'
#'
#' # Many sample and target concentrations
#' df2 <- data.frame(.pred_conc = 1:3)
#' qp_dilute(df2, target_conc = c(0.1, 0.4, 0.8), target_vol = 30)
#'
#' # Takes a list, so long as it has a data.frame named qp as one of the items:
#' ls <- list(qp = data.frame(.pred_conc = 3))
#' qp_dilute(ls, target_conc = 0.5, target_vol = 30)
#'
#' @export
qp_dilute <- function(x, ...) {
UseMethod("qp_dilute")
Expand Down
34 changes: 34 additions & 0 deletions man/dilute.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 22 additions & 3 deletions man/qp_dilute.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 25aaa67

Please sign in to comment.