I created a list of data frames. I'm trying to change the original data frames with mutate and select commands. I created a list from all my data frames
m <- as.list(paste0(rep("traffic_", 12), 2005:2016))
I Tried to run the next command: but it still doesn't work for me.
foreach(x=iter(m)) %do% { assign(x, mutate(x , date = make_datetime(shana, hodesh, taarich, shaa)) %>%
select( -shana, -hodesh, -taarich, -shaa)) }
this is one of the original data frames
> traffic_2016
shana kvish keta maslul hodesh taarich yom shaa nefah status
1 2016 1 10 1 9 11 1 0 1710 NA
2 2016 1 10 1 9 11 1 1 934 NA
3 2016 1 10 1 9 11 1 2 800 NA
4 2016 1 10 1 9 11 1 3 637 NA
5 2016 1 10 1 9 11 1 4 588 NA
6 2016 1 10 1 9 11 1 5 951 NA
7 2016 1 10 1 9 11 1 6 2312 NA
8 2016 1 10 1 9 11 1 7 3769 NA
9 2016 1 10 1 9 11 1 8 3348 NA
10 2016 1 10 1 9 11 1 9 2788 NA
11 2016 1 10 1 9 11 1 10 2879 NA