I have a series of data frames, df1 df2, where each data frame follow this structure:
df1
df2
x <- c(1:5) y <- c(1:5) df1 <- data
Or use llply (from plyr) or lapply like so:
llply
plyr
lapply
library(plyr) result_list <- llply(list_of_df, function(x) { # do the replacing return(x) })