Description Usage Arguments Examples
Various functions for working with MDS codes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | is_valid_mds(x, ...)
is_invalid_mds(x, ...)
get_valid_mds(x, ...)
get_invalid_mds(x, ...)
add_hyphen(x, ...)
strip_hyphen(x, ...)
strip_leading_zeros(x, ...)
standardize_mds(x, hyphen = TRUE, ...)
|
x |
A character vector. |
... |
Additional optional arguments. |
hyphen |
Logicial indicating whether or not to include a hyphen before
the design number (if one is not already present). Only used in
|
1 2 3 4 5 6 7 8 9 10 11 | mds <- c("YEH-60B", "YEH-60B1", "AYEH-60B", "F-16A", "F16", "F016", "YRAH-66A")
is_valid_mds(mds)
mds %>%
strip_leading_zeros %>%
strip_hyphen
mds %>%
strip_leading_zeros %>%
add_hyphen
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.