Created
May 18, 2018 16:13
-
-
Save alexhallam/4580fb0bf0167d9685413c287a4a4b38 to your computer and use it in GitHub Desktop.
rolling averages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tq_mutate(select = usd,mutate_fun = rollapply,FUN = mean,width = 13, | |
col_rename = "roll13") %>% | |
tq_mutate(select = usd,mutate_fun = rollapply,FUN = mean,width = 2, | |
col_rename = "roll2") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment