mergeRows: Function to Merge Rows of Two Data Frames.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mergeRows.R

Description

This function merges two data frames by combining their rows.

Usage

1
2
3
4
mergeRows(X, Y, common.only = FALSE, ...)

## S3 method for class 'data.frame'
mergeRows(X, Y, common.only = FALSE, ...)

Arguments

X

First data frame.

Y

Second data frame.

common.only

If TRUE, only variables (columns) common to the two data frame are included in the merged data set; the default is FALSE.

...

Not used.

Value

A data frame containing the rows from both input data frames.

Author(s)

John Fox

See Also

For column merges and more complex merges, see merge.

Examples

1
2
3
4
5
6
7
8
if (require(car)){
    data(Duncan)
    D1 <- Duncan[1:20,]
    D2 <- Duncan[21:45,]
    D <- mergeRows(D1, D2)
    print(D)
    dim(D)
}

RcmdrMisc documentation built on May 29, 2017, 1:53 p.m.

Search within the RcmdrMisc package
Search all R packages, documentation and source code