rbindimpimp {impimp} | R Documentation |
Combine impimp Objects
Description
Combine two object of class "impimp"
like rbind
would do with data frames.
Usage
rbindimpimp(x, y)
Arguments
x , y |
objects of class |
Details
The resulting object is constructed in such a way that minimizes the creation of 'tupled' variables. Only those variables are joined as tuples which are actually necessary to keep the data frame like consise representation of impimp objects.
The attributes "impmethod"
and "varlevels"
contain
the set union of those of x
and y
on a global and
per underlying variable basis, respectively.
Value
An object of class "impimp"
, inheriting the
attributes, specific to imimp objects, of x
and y
.
See Also
Examples
A <- data.frame(x1 = c(1,0), x2 = c(0,0),
y1 = c(1,0), y2 = c(2,2))
B <- data.frame(x1 = c(1,1,0), x2 = c(0,0,0),
z1 = c(0,1,1), z2 = c(0,1,2))
impA <- impimp(A, B, method = "case_wise")
impB <- impimp(B, A, method = "case_wise")
rbindimpimp(impA, impB)