View source: R/aanalyse_kinetics_helpers.R
| setup_kinetics_worker | R Documentation |
analyse_<method>() workersRuns the identical per-interval setup shared by every kinetics worker:
validates data, resolves nirs_channels and time_channel,
broadcasts global arguments across channels via resolve_channel_args(),
and validates the resolved per-channel arguments via
validate_kinetics_args().
setup_kinetics_worker(
data,
nirs_quo,
time_quo,
arg_list,
choices = list(),
fix_params = NULL,
verbose = TRUE,
env = rlang::caller_env()
)
data |
A single "mnirs" data frame. |
nirs_quo, time_quo |
Quosures of the worker's |
arg_list |
Named list of the method's per-channel-capable arguments. |
choices |
Named list of valid values for choice-type arguments,
passed to |
fix_params |
An optional character vector of fixable model
parameter names, or a function of a channel's resolved argument list
returning that vector (for models whose fixable parameters depend on
another argument, e.g. |
verbose |
Logical. |
env |
The calling environment or a defused call, used to report errors and warnings as coming from the user-facing function rather than the validator. |
fix is itself a named list, so it is classified before resolution: a
plain list of parameter values applies globally to every channel, while a
list whose elements are all lists is a per-channel map keyed by channel
name. The resolved fix is validated per channel against fix_params
when supplied.
A named list with nirs_channels, time_channel, and
per_channel.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.