Skip to content

Commit

Permalink
Drop call to enquos()
Browse files Browse the repository at this point in the history
  • Loading branch information
markfairbanks committed Dec 11, 2023
1 parent 0287929 commit c83a981
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions R/drop_na.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ drop_na <- function(.df, ...) {

#' @export
drop_na.tidytable <- function(.df, ...) {
dots <- enquos(...)

if (length(dots) == 0) {
if (missing(...)) {
na.omit(.df)
} else {
drop_cols <- tidyselect_locs(.df, ...)
cols <- tidyselect_locs(.df, ...)

na.omit(.df, cols = drop_cols)
na.omit(.df, cols = cols)
}
}

Expand Down

0 comments on commit c83a981

Please sign in to comment.