Uses the metadat in tactics_f to make it easier to build ordered factors.

fct_tactic(tactics, input = c("id", "pretty", "nl", "taid"),
  output = c("pretty", "nl", "id", "taid"), matrix = c("enterprise",
  "mobile", "pre"))

Arguments

tactics

a character vector

input

what is in tactics? (See Details)

output

what do you want the factor label to be? (See Details)

matrix

which matrix? ("enterprise", "mobile", "pre")

Details

You may receive Tatics encoded in one of many forms, including:

  • taid (Tactic ID) the official MITRE ATT&CK tactic id (e.g. "TA0001")

  • id (Tactic text id) lowercase-dashed name (e.g. "initial-access")

  • pretty (Tactic text) Upper/lowercase name suitable for display (e.g. "Initial Access")

  • nl (Tactic text) same as ^ but w/newlines for space constrained display (e.g. "Initial\nAccess")

See also

tactics_f for direct access to the ordered Tactics

Examples

# NOT RUN {
fct_tactic(c("initial-access", "persistence"), "id", "nl")
# }