build_na_results: Build a standardised NA result for a failed channel

View source: R/aanalyse_kinetics_helpers.R

build_na_resultsR Documentation

Build a standardised NA result for a failed channel

Description

Returns the method-specific coefs/model/fitted_data/diag list expected by analyse_kinetics_channels() when a model fit fails, populated with NA/NULL values.

Usage

build_na_results(na_coefs)

Arguments

na_coefs

A template 1-row data.frame of NA method coefficients (without interval/nirs_channels, which are added upstream), or a character vector of their column names.

Value

A named list with elements coefs, model, fitted_data, and diag.


mnirs documentation built on Sept. 13, 2026, 1:06 a.m.