FinalForecast<-FinalForecast%>%
mutate_if(is.numeric,toMillions)%>%
bind_rows(summarise_all(., list(~if(is.numeric(.)) sum(.) else "Total")))
When I use this line of code, the Bind Rows line gives an error. The code still works and everything, but it gives me a warning in RStudio that there's an unmatched ')'. I'm not sure if this is just something that RStudio is freaking out over, or if I've written something that's technically correct but bad form.
I wouldn't care if it was just me using the script, but I'm leaving my job, and wanted to leave some of these tools for some other folks, so I've been commenting up my code for people who are not exactly coders. I don't want them to worry about errors in the code, even if they still work.
