If I have a list of dfs in my environment, and I would like to rename them base on a mapping file I created, how can I do that?
my mapping file is looks like this:
mapping<- structure(list(Tab = c("Study", "Score", "Level", "Level2",
"Level3", "level_Grouped"), DatasetName = c("Output3", "Output4",
"Output5", "Output6", "Output7", "Output3.g")), row.names = c(NA,
-6L), class = c("tbl_df", "tbl", "data.frame"))
I am thinking to get the output in the list first, then loop through the rename process. but I kind of lost in the process. what should I use for rename a df? Could anyone guide me on this?
output_list<-ls(pattern="^Output")
lapply(output_list, function(x)...)
Thanks.