I have 50 data frames with temperature and humidity data and I want to create a new data frame, which includes a specific row from each data frame. Firstly I've created a list (onomata_list) in which I imported all 50 data frames, secondly I've created a dummy data frame (All_stations_30_6_17) to "send" the rows from each data frame and finally I wrote the following for loop in order to achieve the abovementioned:
for(i in 1:length(onomata_list)){
new_df <- onomata_list[[i]] %>% filter(date == "2017-06-30" & time == "17:00")
All_Stations_30_6_17 <- rbind(All_stations_30_6_17,new_df)
}
Unfortunately it doesn't work, and I receive the following message:
Error in rbind(All_stations_30_6_17, new_df) : object 'All_stations_30_6_17' not found
It tried to solve it for the last couple of hours, but I had no luck. Any suggestion ?
All_stations_30_6_17before you use it. It would be helpful if you could post a small reproducible example.