Steps:
1) create function
auto_corr -> function(x) { cor(x, lag(x, 1), use = "complete.obs" }
2) assign function to .f in slide_dbl
That's it.
Way shorter than a for loop.
#rstats
Steps:
1) create function
auto_corr -> function(x) { cor(x, lag(x, 1), use = "complete.obs" }
2) assign function to .f in slide_dbl
That's it.
Way shorter than a for loop.
#rstats
Steps:
1) create function
auto_corr -> function(x) { cor(x, lag(x, 1), use = "complete.obs" }
2) assign function to .f in slide_dbl
That's it.
Way shorter than a for loop.
#EconSky
Steps:
1) create function
auto_corr -> function(x) { cor(x, lag(x, 1), use = "complete.obs" }
2) assign function to .f in slide_dbl
That's it.
Way shorter than a for loop.
#EconSky