A carwatch_results object is an R-native representation of the Python
package's participant-indexed, three-level wide table. Internally it is a
tibble with a participant column and safe column names. The column_spec
attribute maps every value column reversibly to day, sample, and
variable; opaque sample IDs are never encoded into the internal names.
Usage
new_carwatch_results(data, column_spec, display_only = FALSE)
Arguments
- data
Tibble containing participant and one column per result value.
- column_spec
Tibble with name, day, sample, and variable.
- display_only
Whether required provenance has intentionally been removed.
Value
A carwatch_results object: a tibble with one row per participant,
a column_spec attribute mapping value columns to day, sample, and
variable, and a carwatch_display_only attribute.