I have 8,000 data.frames inside my global environment (.GlobalEnv) in R, for example
head(ls(.GlobalEnv))
#[1] "db1" "db2" "db3" "db4" "db5"
tail(ls(.GlobalEnv))
#[1] "db7996" "db7997" "db7998" "db7999" "db8000"
How can I access each of the data.frames?
I could access the data.frames using .GlobalEnv$"db1", but it is useless because I want to carry out a linear regression for each one.