View source: R/read_mnirs_helpers.R
| resolve_channels | R Documentation |
User-specified channels take priority; for Artinis, user originals given
as legend names (cleaned or raw trace) resolve to their column ids.
Otherwise nirs channels are read
from the Oxysoft legend (Artinis) or header cells starting with SmO2;
time falls back to the device default, and is detected later by
detect_time_channel() when still NULL; event falls back to the
device default when present in the header row. Device companion columns
(extra, labels) are returned only with keep_all = TRUE.
resolve_channels(
raw,
device,
user,
keep_all = FALSE,
verbose = TRUE,
env = rlang::caller_env()
)
raw |
A raw character data frame from |
device |
Output of |
user |
A list of user-specified |
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. |
A list of time, extra, event, labels, and nirs channel
mappings, each a named c(new = "original") vector or NULL. List
order sets output column order.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.