declare_variable: Target a variable for history-derived features

View source: R/derive.R

declare_variableR Documentation

Target a variable for history-derived features

Description

declare_variable() constructs a target that refers to a state variable's sparse history in entity$hist. It is used to define derived features based on recent values (e.g., counts, means, lags) when building model-ready snapshots.

Usage

declare_variable(name)

Arguments

name

Single variable name (character scalar).

Value

A target list used by derive() and lag_of().


fluxCore documentation built on Sept. 22, 2026, 5:07 p.m.