Validates that an mctable contains required columns (mcnode, mc_func),
issues warnings for missing columns, and auto-fills missing optional columns
with NA.
Arguments
- data
(data frame). mctable with mcnode column (required) and optionally
mc_func, description, from_variable, sample_space, transformation, and
sensi_variation. Default: required.
Value
The validated data frame with all standard mctable columns present,
with missing optional columns filled as NA.
Details
If mc_func is missing, all nodes are treated as deterministic (no uncertainty).
Optional columns are auto-filled with NA if absent. When sample_space
values are provided, they must use supported formats (c(...) or named
assignments such as min = X, max = Y).