File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,11 @@ values of `fct_elevation`:
85
85
unique(DSM_HARV_df$fct_elevation)
86
86
```
87
87
88
- And we can get the count of values in each group using ` dplyr ` 's ` group_by() `
89
- and ` count() ` functions:
88
+ And we can get the count of values in each group using ` dplyr ` 's ` count() ` function:
90
89
91
90
``` {r breaks-count}
92
91
DSM_HARV_df %>%
93
- group_by(fct_elevation) %>%
94
- count()
92
+ count(fct_elevation)
95
93
```
96
94
97
95
We might prefer to customize the cutoff values for these groups.
@@ -133,8 +131,7 @@ And we can get the count of values in each group in the same way we did before:
133
131
134
132
``` {r break-count-custom}
135
133
DSM_HARV_df %>%
136
- group_by(fct_elevation_2) %>%
137
- count()
134
+ count(fct_elevation_2)
138
135
```
139
136
140
137
We can use those groups to plot our raster data, with each group being a
You can’t perform that action at this time.
0 commit comments