Learn R Programming

formulops (version 0.5.0)

formula_side: Extract formula parts

Description

Extract formula parts

Usage

get_lhs(x)

get_rhs(x)

Value

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

Arguments

x

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

Functions

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

  • get_rhs: Extract the right hand side.