afsc_validate: Valid/Invalid Air Force Specialty Codes (AFSCs)

Description Usage Arguments Value

Description

Determine which AFSCs are valid or invalid.

Usage

1
2
3
4
5
is_valid_afsc(x, allow_X = FALSE)

get_invalid_afscs(x, allow_X = FALSE, unique_only = FALSE)

get_valid_afscs(x, allow_X = FALSE, unique_only = FALSE)

Arguments

x

A character vector containing AFSCs.

allow_X

Logical indicating wether or not the "X" placeholder is allowed. Default is FALSE.

unique_only

Logical indicating wether or not only the unique AFSCs should be returned. Default is FALSE.

Value

Returns a logical vector of the same length as its argument x, containing TRUE for those elements that are considered as valid AFSCs, and FALSE otherwise.


bgreenwell/afsc documentation built on May 12, 2019, 8:19 p.m.