formula_side: Extract formula parts

formula_sideR Documentation

Extract formula parts

Description

Extract formula parts

Usage

get_lhs(x)

get_rhs(x)

Arguments

x

A formula (or something that can be coerced to a formula) to extract a part from

Value

The requested part of the formula as a name or call or NULL if it does not exist.

Functions

  • get_lhs(): Extract the left hand side (NULL for one-sided formula).

  • get_rhs(): Extract the right hand side.


formulops documentation built on April 3, 2025, 9:36 p.m.