powered by
Checks that VINs are 17 characters long and will optionally check that disallowed characters (I, O, Q) are not present.
valid_vin_format(vin, check_chars = FALSE)
A character. Should be a properly formatted Vehicle Identification Number. Wildcards (e.g., '*') are acceptable.
Logical. Should an error be thrown if the VIN contains illegal characters?
Logical.
# NOT RUN { # Random VIN valid_vin_format("3VWLL7AJ9BM053541") # With wild card valid_vin_format("3VWLL7AJ9BM*53541") # }
Run the code above in your browser using DataLab