How to create a list of list and then perform a vectorised function over it
问题 I'm looking for two specific help point in this request 1) how to create a list of list given my data base (all.df) below 2) how to vectorise a function over this list of list I'm trying to generate a forecast at a customer / product level using the Prophet library. Im struggling to vectorise the operation. I currently run a for loop, which I want to avoid and speed-up my calculations. Data for the analysis set.seed(1123) df1 <- data.frame( Date = seq(dmy("01/01/2017"), by = "day", length.out