I want to stack all the tables with prefix "vac_" which I have like 2000 of them in total (e.g. vac_0001
, vac_0002
, vac_0003
, ..., vac_2000
). I thought that I could use the list, but R treats the list like an element, so is not possible to stack the elements in the list. How can I stack these 2000 tables without having to manually specify all of them?
I have 2000 tables start with "vac_"
listvac <- ls(pattern = "vac_")
listvac
[1] "vac_0001" "vac_0002" "vac_0003" "vac_0004" "vac_0005"
currently I am binding manually
bind_rows(vac_0001, vac_0002, vac_0003, vac_0004, vac_0005)