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)
A data.table containing the meta data
A list of the patterns from generate_pattern
A data.table of the targets and priority, either generated by generate_prioritisation
or supplied by user
whether to be completely sensitive to the first target (percent default), set to TRUE for percent
A vector of the targets in order of priority