Skip to content

Commit a5fe3f7

Browse files
authored
Rm group by func call
1 parent a6ca574 commit a5fe3f7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

episodes/02-raster-plot.Rmd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ and `count()` functions:
9090

9191
```{r breaks-count}
9292
DSM_HARV_df %>%
93-
group_by(fct_elevation) %>%
94-
count()
93+
count(fct_elevation)
9594
```
9695

9796
We might prefer to customize the cutoff values for these groups.
@@ -133,8 +132,7 @@ And we can get the count of values in each group in the same way we did before:
133132

134133
```{r break-count-custom}
135134
DSM_HARV_df %>%
136-
group_by(fct_elevation_2) %>%
137-
count()
135+
count(fct_elevation_2)
138136
```
139137

140138
We can use those groups to plot our raster data, with each group being a

0 commit comments

Comments
 (0)