Description Usage Arguments Value Examples
Extract or strip off AFSC prefixes and suffixes (if any).
1 2 3 4 5 6 7 8 9 | strip_roots(x, allow_X = FALSE)
get_prefix(x, allow_X = FALSE)
get_suffix(x, allow_X = FALSE)
has_prefix(x, allow_X = FALSE)
has_suffix(x, allow_X = FALSE)
|
x |
A character vector containing AFSCs. |
allow_X |
Logical indicating whether or not the "X" placeholder is allowed. Default is |
strip_roots
returns the original vector of AFSCs with all of
the prefixes and suffixes (if any) removed. The functions get_prefix
and
get_suffix
return, respectively, the prefix and suffix (if any) from
each AFSC.
1 2 3 4 | afscs <- c("9T000", "X1N371E", "123ABC")
strip_roots(afscs)
get_prefix(afscs)
get_suffix(afscs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.