I am trying to build a list of dataframes of variable length from objects saved in the global environment. These all have the prefix "grid_" followed by a number 1,2,3 etc. There can be varying numbers of these so I want the list to include grid_1:grid_(i). My attempt at a solution to this does not work.
myList <- list(paste0("grid_", 1:i, ","))
This just returns a list of character vectors which do not refer to the dataframe objects.
Can anyone help with a function that will refer to the actual objects and build a list of them using the index (i) ?
Thanks in advance for any help.