uj: Upper join

Description Usage Arguments Value Author(s) Examples

View source: R/uj.R

Description

The uj verb is a type of union join that generalizes comma. The result has the union of the columns filled with nulls where necessary.

Usage

1
uj(x, y)

Arguments

x

A dataframe

y

A dataframe

Value

A dataframe

Author(s)

JFP

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  x <- data.frame(a=c(1,2),
                  b=c(2,3),
                  c=c(5,7)
  )
  y <- data.frame(a=1:3,
                  b=c(2,3,7),
                  c=c(10,20,30),
                  d=c("A" , "B", "C")
  )
  
  # unkeyed, so second table is inserted
  x %>% uj(y)

HikaGenji/fql documentation built on April 12, 2021, 8:36 a.m.