-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi #18
base: main
Are you sure you want to change the base?
hi #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work - fun to see different approaches!
Using the new dataset created above, create a bar plot of precipitation for each time frame for each county using `facet_wrap()` | ||
|
||
```{r} | ||
n_distinct(PivotedKenya$County) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! I just looked at the number of rows in the filtered table but this is definitely a more robust way to do it!
```{r} | ||
CountyKenya%>% | ||
filter(Precipitation_585_90 > mean(Precipitation_585_90))%>% | ||
pivot_longer(contains('Precipitation'))%>% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this way of pivoting! I just listed the column index #s but this makes it more clear what you're doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also might be helpful to store your pivoted data as a new object!
agrovoltaics?