I am brand new to R so if I\'m thinking about this completely wrong feel free to tell me. I have a series of imported dataframes on power plants, one of each year (Plant1987, Pl
Try this ..
year=seq(1987,2008,by=1) list_object_names = sprintf("Plant%s", 1987:2008) list_DataFrame = lapply(list_object_names, get) for (i in 1:length(list_DataFrame ) ){ list_DataFrame[[i]][,'Year']=year[i] }