add_relationship: Add relationship(s) to an xpose_set

View source: R/xpose_set.R

add_relationshipR Documentation

Add relationship(s) to an xpose_set

Description

Add relationship(s) to an xpose_set

Usage

add_relationship(xpdb_s, ..., .warn = TRUE, .remove = FALSE)

remove_relationship(xpdb_s, ...)

Arguments

xpdb_s

<xpose_set> An xpose_set object

...

<dynamic-dots> One or more formulas that define relationships between models. One list of formulas can also be used, but a warning is generated.

.warn

<logical> Should warnings be generated for non-formula inputs? (default: TRUE)

.remove

<logical> Should listed relationships be removed? (default: FALSE)

Value

An xpose_set object with relationships added

Examples


xpdb_set %>%
  add_relationship(mod1~fix2) # ouroboros

xpdb_set %>%
  remove_relationship(fix1~mod2) # split down the middle


xpose.xtras documentation built on April 4, 2025, 2:13 a.m.