Skip to content

Commit

Permalink
Pipe - Long lines (#155)
Browse files Browse the repository at this point in the history
Since the `Species` column has been grouped, we cannot calculate `n_distinct` of that variable
  • Loading branch information
qbao96xb authored Sep 30, 2024
1 parent eebd07c commit 4d6e9b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pipes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ iris %>%
group_by(Species) %>%
summarise(
Sepal.Length = mean(Sepal.Length),
Sepal.Width = mean(Sepal.Width),
Species = n_distinct(Species)
Sepal.Width = mean(Sepal.Width)
)
```

Expand Down

0 comments on commit 4d6e9b7

Please sign in to comment.