Join yspec objects together

ys_join(left, right, ...)

Arguments

left

a yspec object

right

a yspec object

...

more yspec objects

Value

A single yspec object

A single yspec object

Details

All inputs must be yspec objects. When the right spec (or specs passed under ...) is joined to the left spec, columns that exist in both left and right are removed from right before joining.

See also

Examples

spec <- ys_help$spec() l <- ys_select(spec, WT, BMI) r <- ys_select(spec, TIME, TAD) rr <- ys_select(spec, EVID, MDV, CMT, BMI) ys_join(l, r)
#> name c d unit short source #> WT - - kg weight ysdb_internal.yml #> BMI - - m2/kg BMI ysdb_internal.yml #> TIME - - hour TIME look.yml #> TAD - - hours time after dose .
ys_join(l, r, rr)
#> name c d unit short source #> WT - - kg weight ysdb_internal.yml #> BMI - - m2/kg BMI ysdb_internal.yml #> TIME - - hour TIME look.yml #> TAD - - hours time after dose . #> EVID - - . event ID ysdb_internal.yml #> MDV - - . MDV ysdb_internal.yml #> CMT - - . compartment number ysdb_internal.yml