Join yspec objects together
ys_join(left, right, ...)
| left | a yspec object |
|---|---|
| right | a yspec object |
| ... | more yspec objects |
A single yspec object
A single yspec object
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.
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 . #> 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 . #> TAD - - hours time after dose . #> EVID - - . event ID ysdb_internal.yml #> MDV - - . MDV ysdb_internal.yml #> CMT - - . compartment number ysdb_internal.yml