Comments (4)
Seems to me that in the second case there will be a different value for 'max(hp)' because of the pre-filtering of the dataset. Therefore the B's in the issue title are not the same in the compared cases.
from dplyr.
Yes, that's exactly the point.
I'm not saying the behavior is wrong, I'm saying it may not be obvious how filter()
will process ...
from the current documentation.
from dplyr.
If you compare the two cases with identical values, the results are identical:
> filter(mtcars, cyl < 8, hp < 335) |> dim()
[1] 18 11
> # vs
> filter(filter(mtcars, cyl < 8), hp < 335) |> dim()
[1] 18 11
I think there is nothing wrong here...
from dplyr.
Not going to waste more of my time engaging when it's clear you haven't read the issue or my response carefully.
from dplyr.
Related Issues (20)
- Native pipe does not work with rowwise HOT 6
- Release dplyr 1.1.4 HOT 1
- Spurious warnings about many-to-many joins HOT 5
- Feature request: allow additional predicates in join_by HOT 2
- the functions filter and full_join do not work properly with numbers with 4 decimals or more. HOT 2
- Feature Request: In across, have function for `.names` argument HOT 2
- Feature request/Question: do not drop extra classes (and attributes) with functions group_by, summarise and so HOT 1
- relocate: naming index-identified column triggers warning unless index wrapped in all_of() et al. HOT 6
- Unexpected behavior with rename/rename_with HOT 3
- Code don't work in version 1.1.4 HOT 1
- A better data masking indirection example in the `programming.Rmd` vignette: `filter(df, {{ var }})`
- Not correctly escaping column names in sql for `duckdb` connection HOT 1
- arrange not reporting syntax errors on .by_group HOT 1
- Unable to pass n to dplyr::slice
- Feature Request: profiling options for a chain of pipes HOT 1
- `cur_column()` not working in `case_when()` LHS HOT 1
- perfromance slowdown using across within mutate HOT 1
- Update `.groups` message after `group_by() |> summarize()`
- Request: Add a .by argument to slice_ functions to match main verbs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dplyr.