I have a series of data frames USA, Canada, Mexico and such. How can I structure a loop in R so that no matter how many data frames we have, data cleaning steps can be applied to each data frame? For example, below step can be applied to USA, Canada and Mexico with loop.
USA <- df %>%
gather(key = "Year", value = "Volume",
Thanks for your help!