I i am using the following code to increase the next observation by the previous observation * .5:
abc <- data.frame(1:6)
abc$b <- 0
colnames(abc) <- c ("imps","Effect")
abc$Effect <- filter(abc$imps, filter = 0.5, method = "recursive")
I keep getting the error:
Error in UseMethod("filter_") :
no applicable method for 'filter_' applied to an object of class "c('integer', 'numeric')"
The desired output:
imps Effect
1 1
2 2.5
3 4.25
4 6.125
5 8.0625
6 10.03125
Any suggestions? NOTE: Yesterday before I installed 3.2.5 from 3.2.2 this ran just fine