fct_tactic: Make an ordered Tactics factor with optional better labelling

Description Usage Arguments Details See Also Examples

View source: R/fct-tactic.R

Description

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

Usage

1
2
3
4
5
6
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:

See Also

tactics_f for direct access to the ordered Tactics

Examples

1
fct_tactic(c("initial-access", "persistence"), "id", "nl")

hrbrmstr/attckr documentation built on Aug. 13, 2020, 11:49 a.m.