As an alternative, a "best practice" when splitting data like this is to keep the data.frames within a list, as provided by split
. To process it, you use either one of sapply
or lapply
(many factors) and capture the output back in a list. For instance:
eqRegionsProcessed <- lapply(eqRegions, function(df) {
## do something meaningful here
})
This obviously only works if you are doing the same thing to each data.frame.
If you really must break them out and deal with each data.frame uniquely, then @MatthewPlourde's and @MaratTalipov's answers will work.