Skip to content

Replace dplyr::filter(DF, A & B) with dplyr::filter(DF, A, B)#291

Open
Moohan wants to merge 1 commit intomainfrom
lint/filter
Open

Replace dplyr::filter(DF, A & B) with dplyr::filter(DF, A, B)#291
Moohan wants to merge 1 commit intomainfrom
lint/filter

Conversation

@Moohan
Copy link
Copy Markdown
Member

@Moohan Moohan commented Jun 19, 2025

dplyr::filter(DF, A & B) is the same as dplyr::filter(DF, A, B), but the latter will be more readable / easier to format for long conditions.

https://lintr.r-lib.org/reference/conjunct_test_linter.html#details

@Moohan Moohan changed the title Replace dplyr::filter(DF, A & B) with dplyr::filter(DF, A, B) Replace dplyr::filter(DF, A & B) with dplyr::filter(DF, A, B) Jun 19, 2025
@Moohan Moohan force-pushed the lint/filter branch 3 times, most recently from e0f11c7 to 679f13e Compare January 13, 2026 09:39
@Moohan Moohan requested a review from khansh01 as a code owner March 26, 2026 16:16
`dplyr::filter(DF, A & B)` is the same as `dplyr::filter(DF, A, B)`, but the latter will be more readable / easier to format for long conditions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant