Create a named list, apply the function and use list2env
to reflect those changes in the original dataframes.
library(nycflights13)
files <- dplyr::lst(mtcars, flights, airports)
result <- lapply(files, ChangeNames)
list2env(result, .GlobalEnv)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…