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

fix bad location of braces )} in Build_your_own_fanchart.R #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Build_your_own_fanchart.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ forecast_data = tibble(Date = rep(fdates, 2),
select(-c("Forecast", "Variance")) %>%
{bind_rows(select(., -(nq+2)), # Drop last quantile
select(., -3) %>% # Drop first quantile
arrange(Variable, desc(Date)) %>% # Reverse order
rename_at(-(1:2), ~paste0("V",1:(nq-1))) )} %>% # Shift names of reversed ones
arrange(Variable, desc(Date)) )} %>% # Reverse order
rename_at(-(1:2), ~paste0("V",1:(nq-1))) %>% # Shift names of reversed ones
pivot_longer(cols=-c(Date, Variable), names_to="Area", values_to="Coordinates") %>%
unite(VarArea, Variable, Area, remove=FALSE) %>% # Create variable to index polygons
bind_rows(pivot_longer(tail(Data,nb), cols = -Date, names_to="Variable", values_to="Backdata"), .)
Expand Down