
Pivot categorical trait data to wide format
pivot_categorical_traits_generic.RdGeneric function to pivot categorical/character traits. Uses data.table for performance.
Usage
pivot_categorical_traits_generic(
data,
id_col,
aggregation_mode = c("mode", "concat"),
include_id_measures = TRUE,
name_prefix = ""
)