desc() is unnecessary, as later filtered both first and last (#1447)
This commit is contained in:
		@@ -742,7 +742,7 @@ Filtering gives you all variables, with each observation in a separate row:
 | 
				
			|||||||
```{r}
 | 
					```{r}
 | 
				
			||||||
flights |> 
 | 
					flights |> 
 | 
				
			||||||
  group_by(year, month, day) |> 
 | 
					  group_by(year, month, day) |> 
 | 
				
			||||||
  mutate(r = min_rank(desc(sched_dep_time))) |> 
 | 
					  mutate(r = min_rank(sched_dep_time)) |> 
 | 
				
			||||||
  filter(r %in% c(1, max(r)))
 | 
					  filter(r %in% c(1, max(r)))
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user