Skip to content

Commit

Permalink
Improve assert for marginal model
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed Nov 25, 2024
1 parent 077279c commit 4dff643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/marginal_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ new_epidist_marginal_model <- function(data) {
#' @export
assert_epidist.epidist_marginal_model <- function(data, ...) {
assert_data_frame(data)
assert_names(names(data), must.include = "delay")
assert_names(names(data), must.include = c("delay", "count", "pwindow"))
assert_numeric(data$delay, lower = 0)
}

Expand Down

0 comments on commit 4dff643

Please sign in to comment.