fct_tactic.Rd
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"))
tactics | a character vector |
---|---|
input | what is in |
output | what do you want the factor label to be? (See Details) |
matrix | which matrix? (" |
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
")
tactics_f for direct access to the ordered Tactics
# NOT RUN { fct_tactic(c("initial-access", "persistence"), "id", "nl") # }