valid_vin_format: Check VIN Length and Characters

Description Usage Arguments Value Examples

View source: R/valid_vin_format.R

Description

Checks that VINs are 17 characters long and will optionally check that disallowed characters (I, O, Q) are not present.

Usage

1
valid_vin_format(vin, check_chars = FALSE)

Arguments

vin

A character. Should be a properly formatted Vehicle Identification Number. Wildcards (e.g., '*') are acceptable.

check_chars

Logical. Should an error be thrown if the VIN contains illegal characters?

Value

Logical.

Examples

1
2
3
4
# Random VIN
valid_vin_format("3VWLL7AJ9BM053541")
# With wild card
valid_vin_format("3VWLL7AJ9BM*53541")

vindecodr documentation built on Nov. 25, 2020, 5:07 p.m.