use_fleetabb | R Documentation |
Get the fleet, i.e., "TW"
or "FG"
, depending on matching the pattern
to the values in x
.
use_fleetabb(x, pattern = "^TW|^DRG|NET", use = c("TW", "FG"))
x |
A vector of character values. |
pattern |
A regular expression to search for. |
use |
A vector of two character values, where the first value will
be used for all values in |
A vector of "TW"
or "FG"
depending on if the values
in x
match the pattern, respectively. If you change the default
values in use
, then the output will be different but still one
value for TRUE and another for all FALSE grepl.
Kelli Faye Johnson
use_fleetabb(c("HKL", "TWL", "POT"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.