parse_by_level: Parse the factor level from a factor-by smooth label

View source: R/get-terms.R

parse_by_levelR Documentation

Parse the factor level from a factor-by smooth label

Description

Fallback for the rare case where by.level is unavailable. A label such as "s(tend):metastasesyes" encodes the level ("yes") as the suffix of the by-variable name ("metastases").

Usage

parse_by_level(label, by, lvls)

pammtools documentation built on Aug. 27, 2026, 1:08 a.m.