cbinds: Combine Two Data Frame by Columns

View source: R/utils.r

cbindsR Documentation

Combine Two Data Frame by Columns

Description

Combine two data.frame by columns by filling in missing rows from each other based on rownames.

Usage

cbinds(F1, F2, fill = 0)

Arguments

F1

data.frame.

F2

data.frame.

fill

character/numeric. Default 0

Value

a combined data.frame

Examples

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


HatsuneCode/TrustVDJ documentation built on Aug. 13, 2022, 9:36 p.m.