Rbind: Stack data frames vertically

View source: R/Rbind.R

RbindR Documentation

Stack data frames vertically

Description

Stack data frames vertically on top of each other with columns identified by variable names. Matrices are coerced to data frames.

Usage

Rbind(..., verbose = FALSE, id = ".index")

Arguments

...

data frames or objects that can be coerced to data frames

Examples

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))

gmonette/spida2 documentation built on Aug. 11, 2024, 7:52 p.m.