extract_basis_variable: Extract the primary variable from a basis function call

View source: R/basis_utils.R

extract_basis_variableR Documentation

Extract the primary variable from a basis function call

Description

Extract the primary variable from a basis function call

Usage

extract_basis_variable(term)

Arguments

term

Character string like "ns(age, df=3)" or "poly(x, degree=2)"

Value

Character string of the variable name (e.g., "age", "x")


panelr documentation built on Jan. 21, 2026, 9:06 a.m.