You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
40 lines
1.3 KiB
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/fct-tactic.R
|
|
\name{fct_tactic}
|
|
\alias{fct_tactic}
|
|
\title{Make an ordered Tactics factor with optional better labelling}
|
|
\usage{
|
|
fct_tactic(
|
|
tactics,
|
|
input = c("id", "pretty", "nl", "taid"),
|
|
output = c("pretty", "nl", "id", "taid"),
|
|
matrix = c("enterprise", "mobile", "pre")
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{tactics}{a character vector}
|
|
|
|
\item{input}{what is in \code{tactics}? (See Details)}
|
|
|
|
\item{output}{what do you want the factor label to be? (See Details)}
|
|
|
|
\item{matrix}{which matrix? ("\code{enterprise}", "\code{mobile}", "\code{pre}")}
|
|
}
|
|
\description{
|
|
Uses the metadat in \link{tactics_f} to make it easier to build ordered factors.
|
|
}
|
|
\details{
|
|
You may receive Tatics encoded in one of many forms, including:
|
|
\itemize{
|
|
\item \code{taid} (Tactic ID) the official MITRE ATT&CK tactic id (e.g. "\code{TA0001}")
|
|
\item \code{id} (Tactic text id) lowercase-dashed name (e.g. "\code{initial-access}")
|
|
\item \code{pretty} (Tactic text) Upper/lowercase name suitable for display (e.g. "\verb{Initial Access}")
|
|
\item \code{nl} (Tactic text) same as ^ but w/newlines for space constrained display (e.g. "\verb{Initial\\\\nAccess}")
|
|
}
|
|
}
|
|
\examples{
|
|
fct_tactic(c("initial-access", "persistence"), "id", "nl")
|
|
}
|
|
\seealso{
|
|
\link{tactics_f} for direct access to the ordered Tactics
|
|
}
|
|
|