Rbind | R Documentation |
Stack data frames vertically on top of each other with columns identified by variable names. Matrices are coerced to data frames.
Rbind(..., verbose = FALSE, id = ".index")
... |
data frames or objects that can be coerced to data frames |
zd1 <- data.frame(x = 1:3, y = 2, z = 3, .unique. = 'a')
zd2 <- data.frame(x = 1:4, y = 'y', w = 1, m = matrix(1:8, nrow = 4))
zm1 <- cbind(x = 1:3, y = 2, z = 3)
zm2 <- cbind(x = 1:4, y = 3, w = 1)
Rbind(zm1, zm2, zd1, zd1, zd2)
Rbind(Rbind(zm1, zm2), Rbind(zd1, zd2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.