map_profile_to_target creates a mapping of the profile to the target, breaking the ties by the priority.

map_profile_to_target(meta, patterns, priority, sensitive_to_1 = FALSE)

Arguments

meta

A data.table containing the meta data

patterns

A list of the patterns from generate_pattern

priority

A data.table of the targets and priority, either generated by generate_prioritisation or supplied by user

sensitive_to_1

whether to be completely sensitive to the first target (percent default), set to TRUE for percent

Value

A vector of the targets in order of priority