mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +00:00
Update tidyr call to work with dplyr-0.6.0-rc
This commit is contained in:
parent
46d1f7b24c
commit
2bb5827303
1 changed files with 1 additions and 1 deletions
|
|
@ -751,7 +751,7 @@ predict_seasonal_components <- function(m, df) {
|
||||||
upper = apply(comp, 1, stats::quantile, upper.p,
|
upper = apply(comp, 1, stats::quantile, upper.p,
|
||||||
na.rm = TRUE))
|
na.rm = TRUE))
|
||||||
}) %>%
|
}) %>%
|
||||||
tidyr::gather(stat, value, c(mean, lower, upper)) %>%
|
tidyr::gather(stat, value, mean, lower, upper) %>%
|
||||||
dplyr::mutate(stat = ifelse(stat == 'mean', '', paste0('_', stat))) %>%
|
dplyr::mutate(stat = ifelse(stat == 'mean', '', paste0('_', stat))) %>%
|
||||||
tidyr::unite(component, component, stat, sep="") %>%
|
tidyr::unite(component, component, stat, sep="") %>%
|
||||||
tidyr::spread(component, value) %>%
|
tidyr::spread(component, value) %>%
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue