How can I loop the variable name in the mutate command in R?
I am copying only a certain part of the code where I am having a problem.
data.frame%>%
mutate(paste("Soiltemp_slc", j, sep = "") = accumulate2(c(first(dummy1), dummy1[-1]), dummy2[-1], ~ ..2+(..1*..3))) %>%
{. ->> data.frame }