combine.data.frames: Combine two data frames

Description Usage Arguments Details Value Examples

Description

Add rows as necessary to construct a dataframe with observations from both of the source data frames.

Usage

1
combine.data.frames(data1, data2, sep = "", keepfactors = NULL)

Arguments

data1

data frame

data2

data frame

sep

a paste separator for creating factor names

keepfactors

a list of factor names to translate (or NULL for all); excluded factors will be given columns set to 0

Details

Translates factors into multiple columns as needed.

Value

Augmented data frame

Examples

1
2
combine.data.frames(iris, data.frame(Sepal.Length=1, Matched.Sepal.Length=-1))
combine.data.frames(iris, data.frame(Species="something else"))

jrising/hierlm documentation built on May 31, 2019, 8:08 a.m.