Learn R Programming

replyr (version 0.3.01)

replyr_union_all: Union two tables.

Description

Spark 2* union_all has issues ( https://github.com/WinVector/replyr/blob/master/issues/UnionIssue.md ), and exponsed union_all semantics differ from data-source backend to backend. This is an attempt to provide a join-based replacement. NOT YET TESTED.

Usage

replyr_union_all(tabA, tabB, ..., cols = NULL,
  tempNameGenerator = makeTempNameGenerator("replyr_union_all"))

Arguments

tabA

table with at least 1 row.

tabB

table with at least on same data source as tabA and commmon columns.

...

force later arguments to be bound by name.

cols

list of column names to limit to (defaults to intersection), must be non-empty and contained in intersection.

tempNameGenerator

temp name generator produced by replyr::makeTempNameGenerator, used to record dplyr::compute() effects.

Value

table with all rows of tabA and tabB (union_all).

Examples

Run this code

d1 <- data.frame(x=c('a','b'))
d2 <- data.frame(x='c')
replyr_union_all(d1, d2)

Run the code above in your browser using DataLab