Skip to content

filter_out() without args removes all rows #7855

Description

@LJ-Jenkins

When filter_out() is given no args it removes all rows from the input, rather than returning the input unchanged (like filter() does).

df <- data.frame(x = 1:2, y = 1:2)
df |> dplyr::filter()
#>   x y
#> 1 1 1
#> 2 2 2

df |> dplyr::filter_out()
#> [1] x y
#> <0 rows> (or 0-length row.names)

Created on 2026-09-07 with reprex v2.1.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions