Lets say I have 5 dataframes and I want to create a list of them based on their name (just like we can filter columns and rows based on name or similarities to a word).
Example:
df1 <- data.frame(Y = rnorm(15), Z = rnorm(15))
df2 <- data.frame(Y = rnorm(15), Z = rnorm(15))
df3 <- data.frame(Y = rnorm(15), Z = rnorm(15))
specialdf1 <- data.frame(Y = rnorm(15), Z = rnorm(15))
specialdf2 <- data.frame(Y = rnorm(15), Z = rnorm(15))
specialdf3 <- data.frame(Y = rnorm(15), Z = rnorm(15))
speciallist <- list(specialdf1, specialdf2, specialdf3)
Instead of doing this by hand I want to call the dataframes by something they have in their name (e.g. "special") AND not be limited to e.g. 3 dataframes (since I would not know how many dataframes will be there in actuality). How would I do this?