Using lapply to apply a function over list of data frames and saving output to files with different names

It will work with the following lapply call:

lapply(names(mylist), function(x) NewVar(mylist[[x]], "y", x))

Leave a Comment