ys_join: Join yspec objects together

View source: R/ys-tidy.R

ys_joinR Documentation

Join yspec objects together

Description

Join yspec objects together

Usage

ys_join(left, right, ...)

Arguments

left

A yspec object.

right

A yspec object.

...

More yspec objects.

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.

Value

A single yspec object with left, right and ... all joined together.

See Also

ys_rename(), ys_filter(), ys_select()

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)

ys_join(l, r, rr)


metrumresearchgroup/yspec documentation built on May 24, 2024, 12:48 a.m.