Skip to content

Commit

Permalink
chore: #1962 account for new assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed Jun 30, 2023
1 parent f3ca85e commit a3985aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/filter_extreme.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@ filter_extreme <- function(dataset,
values = c("none", "warning", "error"),
case_sensitive = FALSE
)
assert_data_frame(dataset, required_vars = by_vars)

# group and sort input dataset
tmp_obs_nr <- get_new_tmp_var(dataset)
if (!is.null(by_vars)) {
assert_has_variables(dataset, vars2chr(by_vars))

data <- dataset %>%
derive_var_obs_number(
new_var = !!tmp_obs_nr,
Expand Down

0 comments on commit a3985aa

Please sign in to comment.