extract_fn_name: Extract the function name from a formula term

View source: R/basis_utils.R

extract_fn_nameR Documentation

Extract the function name from a formula term

Description

Extract the function name from a formula term

Usage

extract_fn_name(term)

Arguments

term

Character string representing a formula term like "ns(age, df=3)"

Value

The function name (e.g., "ns") or NULL if not a function call


panelr documentation built on April 4, 2026, 1:07 a.m.