Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

hi #18

wants to merge 1 commit into from

Conversation

codywilk26
Copy link

agrovoltaics?

Copy link

@taylor-bacon taylor-bacon left a 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)

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'))%>%

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.

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants