cbinds | R Documentation |
Combine two data.frame by columns by filling in missing rows from each other based on rownames
.
cbinds(F1, F2, fill = 0)
F1 |
data.frame. |
F2 |
data.frame. |
fill |
character/numeric. Default 0 |
a combined data.frame
F1 = data.frame(A = 1:10, B = 1:10, row.names = 1:10) F2 = data.frame(C = 1:5, D = 1:5, row.names = 3:7) F3 = data.frame(E = 1:7, G = 1:7, row.names = 5:11) Reduce(cbinds, list(F1, F2, F3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.