Learn R Programming

TrustVDJ (version 0.1.0)

cbinds: 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

Run this code
# NOT RUN {
F1 = data.frame(A = seq(10), B = seq(10), row.names = seq(10))
F2 = data.frame(C = seq(5),  D = seq(5),  row.names = 3:7)
cbinds(F1, F2)

# }

Run the code above in your browser using DataLab