Rbind: Stack data frames vertically

Description Usage Arguments Examples

Description

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

Usage

1

Arguments

...

data frames or objects that can be coerced to data frames

Examples

1
2
3
4
5
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)

gmonette/yscs documentation built on May 17, 2019, 7:28 a.m.