unpack_tildes: Takes a formula and returns a string representation of y, cp,...

View source: R/get_segment_table.R

unpack_tildesR Documentation

Takes a formula and returns a string representation of y, cp, and rhs

Description

Takes a formula and returns a string representation of y, cp, and rhs

Usage

unpack_tildes(segment, i)

Arguments

segment

A formula

i

The segment number (integer)

Value

A one-row tibble with columns:

  • form: String. The full formula for this segment.

  • form_y: String. The expression for y (without tilde)

  • form_cp: String. The formula for the change point

  • form_rhs: String. The formula for the right-hand side

Author(s)

Jonas Kristoffer Lindeløv jonas@lindeloev.dk


mcp documentation built on April 1, 2023, 12:03 a.m.