Currently, using a for loop
, I spit out multiple data frames all with the name
res_[Insert some date]
For example in my environment I have:
res_2018-04-01
res_2018-05-01
res_2018-06-01
Each of those data frames has 1 row and 25 columns. The first column is the date the file was uploaded (so for the first data frame the column would have a value of 2018-04-11) and the subsequent columns are the 24 months before the date the file was uploaded.
After the for loop runs, I want to merge all of the data frames that were created without manually typing in the names of those data frames. So for example, I could merge all data frames with a name like res_%
So my final data frame would have 27 columns and (in this case) 3 rows.
Any suggestions?
EDIT: Here is the output for dput(res_2018-04-11)
dput(`res_2018-04-11`)
structure(list(UploadDate = "2018-04-11", `2016-03-01` = 4822598.18735351,
`2016-04-01` = 4022970.75519652, `2016-05-01` = 4471569.0873137,
`2016-06-01` = 4762693.19167908, `2016-07-01` = 3799649.58966077,
`2016-08-01` = 4667486.94228869, `2016-09-01` = 4748252.38636671,
`2016-10-01` = 3953585.1499195, `2016-11-01` = 5258338.05699641,
`2016-12-01` = 4529140.27998058, `2017-01-01` = 3334021.87730489,
`2017-02-01` = 4842435.58785495, `2017-03-01` = 5430798.18389053,
`2017-04-01` = 4045150.70691188, `2017-05-01` = 4660901.62683975,
`2017-06-01` = 4684489.25953388, `2017-07-01` = 3680375.93521103,
`2017-08-01` = 5231564.19023014, `2017-09-01` = 4073906.09821191,
`2017-10-01` = 5440655.92109229, `2017-11-01` = 4996844.57817061,
`2017-12-01` = 5087355.28846096, `2018-01-01` = 2895616.00464724,
`2018-02-01` = 3766770.55063743), .Names = c("UploadDate",
"2016-03-01", "2016-04-01", "2016-05-01", "2016-06-01", "2016-07-01",
"2016-08-01", "2016-09-01", "2016-10-01", "2016-11-01", "2016-12-01",
"2017-01-01", "2017-02-01", "2017-03-01", "2017-04-01", "2017-05-01",
"2017-06-01", "2017-07-01", "2017-08-01", "2017-09-01", "2017-10-01",
"2017-11-01", "2017-12-01", "2018-01-01", "2018-02-01"), row.names = c(NA,
-1L), class = "data.frame")