Skip to contents

A combination id is the item numbers joined by underscores, which is the form score_all_combinations and compute_plateau return.

Usage

set_id_to_items(set_id)

format_set_items(set_id)

format_set_labels(set_id)

Arguments

set_id

Character vector of combination ids, such as "2_3_6_7_17_18".

Value

set_id_to_items() gives a list of integer vectors; format_set_items() a character vector such as "2, 3, 6, 7, 17, 18"; format_set_labels() the item labels, semicolon separated.

Examples

set_id_to_items("2_3_6_7_17_18")
#> [[1]]
#> [1]  2  3  6  7 17 18
#> 
format_set_items("2_3_6_7_17_18")
#> [1] "2, 3, 6, 7, 17, 18"
format_set_labels("2_3_6_7_17_18")
#> [1] "Nightmares; Flashbacks; Avoiding thoughts/feelings; Avoiding reminders; Hypervigilance; Exaggerated startle"