
Type a result-table column by its header, with a guaranteed fallback
Source:R/stato-map.R
stato_type_column.RdMaps a JASP/jamovi/R result-table column header to a STATO ontology class when one exists, then to a metacheck-minted statistic term for the standard statistics STATO has no class for, and otherwise falls back to the header text itself as an untyped label. Every column therefore gets a type, so no column is ever dropped from the statistical-output export.
Arguments
- header
the column header string as rendered in the result table
- call_fn
optional name of the R function that produced this result (e.g.
"shapiro.test"), as carried byread_r_output(). When supplied it disambiguates headers that name different quantities in different tests – R prints a bareWfor both Shapiro-Wilk's W and the Wilcoxon rank sum – which no header-only lookup can resolve. Ignored for GUI formats, which have no call.
Value
a list with annotationValue (the canonical label, or the header
text when unmapped), termSource ("STATO", "metacheck", or ""), and
termAccession (the term IRI, or "").