I have 4 data frames:
> dput(dat1)
structure(list(standard = c("LFGPDLK", "GLPAPIEK", "VTTHPLAK",
"AQGYSGLSVK", "AQTTVTCTEK", "TSPVDEK", "TLVVHEK", "TGAVSGHSLK",
"GASQELK", "HYEGSTVPEK"), Q1 = c(399.24, 416.76, 437.76, 509.28,
573.78, 392.2, 417.25, 482.77, 370.7, 577.78), `Imputed RT` = c(27.7927700981606,
21.4383252210455, 14.3163703676944, 19.2089872117407, 14.3213935030202,
13.9690939378742, 14.6465672186729, 14.1218362333025, 13.8034690838775,
14.4475462934999)), row.names = c(NA, -10L), class = c("tbl_df",
"tbl", "data.frame"))
> dput(dat2)
structure(list(standard = c("HLVALSPK", "DHGETAFAVYDK", "DYWSTVK",
"SSDANLYR", "IVVVTAGVR", "FFESHVAR", "DTDLDGFPDEK", "AATVGSLAGQPLQER",
"SPAGPTVVSIGGGK", "VAAGAFQGLR"), Q1 = c(436.78, 680.82, 453.73,
468.23, 462.3, 501.76, 630.28, 754.41, 617.85, 500.28), `Imputed RT` = c(14.3030184,
21.409683, 24.3425922, 10.90761198, 23.06790474, 13.38930438,
27.3883056, 26.22642234, 23.5529628, 24.20722716)), row.names = c(NA,
-10L), class = c("tbl_df", "tbl", "data.frame"))
> dput(dat3)
structure(list(standard = c("ELGCGAASGTPSGILYEPPAEK", "IDYGVFAK",
"SGFSFGFK", "LPVAPLR", "LGPHAGDVEGHLSFLEK", "DFAEHLLIPR", "VGLSDAFVVVHR",
"NFPSPVDAAFR", "GPGGVWAAEAISDAR", "VTESEIK"), Q1 = c(738.03,
460.75, 442.72, 388.26, 605.32, 407.56, 436.92, 615.81, 733.87,
407.23), `Imputed RT` = c(53.712886618,
51.07663857, 54.33689214, 49.201116355, 51.872420893, 55.03802194,
54.37194863, 55.059055834, 54.007361134, 44.156487444)), row.names = c(NA,
-10L), class = c("tbl_df", "tbl", "data.frame"))
> dput(dat4)
structure(list(standard = c("LVTDLTK", "ITGAQVGTGCGTLNDGK", "HVLVTLGEK",
"HLEDVFSK", "QYFYETK", "NANTFISPQQR", "ADLSGITGAR"), Q1 = c(399.247,
828.909, 502.305, 491.758, 493.739, 643.33, 485.763), `Imputed RT` = c(12.05265,
12.61343, 13.87918, 14.80058, 14.80058, 14.80871, 16.88051)), row.names = c(NA,
-7L), class = c("tbl_df", "tbl", "data.frame"))
I would like to combine them row by row but still keep 4 independent data frames. That means first row should be taken from each data frame and kept in for example DF1, second row should be taken from each data frame and kept in for example DF2, third row should be taken from each data frame and kept in for example DF3, fourth row should be taken from each data frame and kept in for example DF4, and then fifth rows go to DF1, etc.
The problematic part is that one of initial data frames may have lower number of rows what means when is over, then just keep combining from 3 data frames.
Any ideas ?