get_formula_rhs: Extract the Right-Hand Side of a Formula

get_formula_rhsR Documentation

Extract the Right-Hand Side of a Formula

Description

This function extracts the right-hand side (RHS) of a formula and returns it as a character string. Optionally, it can include a tilde (~) at the beginning of the RHS.

Usage

get_formula_rhs(formula, with_tilde = FALSE)

Arguments

formula

A formula object from which to extract the RHS.

with_tilde

Logical, indicating whether to include a tilde (~) at the beginning of the RHS. Defaults to FALSE.

Value

A character string representing the right-hand side of the formula. If with_tilde is TRUE, the string includes a leading tilde.


catalytic documentation built on April 4, 2025, 5:51 a.m.