I have a list() of dataframes. I want to apply dplyr\'s filter() to all of them.
list()
dplyr
filter()
Example code of what I have tried so far...
Using purrr
purrr
library(purrr) map(list.DFs, ~filter(.x, Gold.fish.count == "Total"))
Obviously, you can do exactly the same with lapply:
lapply(list.DFs, function(x) filter(x, Gold.fish.count == "Total"))