Skip to content

Commit

Permalink
update the order of poso_replace_et() arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
levenc committed Sep 12, 2024
1 parent 74092f4 commit c3ca02d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions R/et.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
#' @param target_model Solved rxode2 object. A model generated by one of
#' posologyr's estimation functions.
#' @param prior_model A \code{posologyr} prior population model.
#' @param event_table An rxode2 event table.
#' @param interpolation Character string. Specifies the interpolation method to
#' be used for covariates. Choices are "locf" for last observation carried
#' forward, "nocb" for next observation carried backward, "midpoint", or
#' "linear".
#' @param event_table An rxode2 event table.
#'
#' @return A solved rxode2 object, updated with the event table provided.
#'
Expand Down Expand Up @@ -79,8 +79,8 @@
#' poso_replace_et(pop_model$model,mod_run001,event_table=new_et)
#'
#' @export
poso_replace_et <- function(target_model=NULL,prior_model=NULL,interpolation="locf",
event_table=NULL){
poso_replace_et <- function(target_model=NULL,prior_model=NULL,
event_table=NULL,interpolation="locf"){
# input validation
if (is.null(target_model)) stop("argument 'target_model' is missing, with no default")
if (is.null(prior_model)) stop("argument 'prior_model' is missing, with no default")
Expand Down
12 changes: 6 additions & 6 deletions docs/reference/poso_replace_et.html

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

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions man/poso_replace_et.Rd

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

0 comments on commit c3ca02d

Please sign in to comment.